Asposecpplib

Represents XML qualified name. More...

Inherits System::Object.

Public Member Functions

String get_Namespace () const
 Gets namespace part. More...
 
String get_Name () const
 Gets name part. More...
 
bool get_IsEmpty ()
 Checks if XML qualified name is empty. More...
 
 XmlQualifiedName ()
 Constructs empty qualified name. More...
 
 XmlQualifiedName (String name)
 Constructor. More...
 
 XmlQualifiedName (String name, String ns)
 Constructor. More...
 
int32_t GetHashCode () const override
 Gets hash code. More...
 
String ToString () const override
 Converts XML qualified name to string. More...
 
bool Equals (System::SharedPtr< Object > other) override
 Equality check. More...
 
void Init (String name, String ns)
 Initializes object with new name. More...
 
void SetNamespace (String ns)
 Sets namespace. More...
 
void Verify ()
 Checks the integrity of XML qualified name. Not implemented. More...
 
void Atomize (System::SharedPtr< XmlNameTable > nameTable)
 Atomizes XML qualified name. Not implemented. More...
 
System::SharedPtr< XmlQualifiedNameClone ()
 Clones XML qualified name. Not implemented. More...
 
- Public Member Functions inherited from System::Object
 Object ()
 Creates object. Initializes all internal data structures. More...
 
virtual ~Object ()
 Destroys object. Frees all internal data structures. More...
 
 Object (Object const &x)
 Copy constructor. Doesn't copy anything, really, just initializes new object and enables copy constructing subclasses. More...
 
Objectoperator= (Object const &x)
 Assignment operator. Doesn't copy anything, really, just initializes new object and enables copy constructing subclasses. More...
 
ObjectSharedRefAdded ()
 Increments shared reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector. More...
 
int SharedRefRemovedSafe ()
 Decrements and returns shared reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector. More...
 
int RemovedSharedRefs (int count)
 Decreases shared reference count by specified value. More...
 
Detail::SmartPtrCounter * WeakRefAdded ()
 Increments weak reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector. More...
 
void WeakRefRemoved ()
 Decrements weak reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector. More...
 
Detail::SmartPtrCounter * GetCounter ()
 Gets reference counter data structure associated with the object. More...
 
int SharedCount () const
 Gets current value of shared reference counter. More...
 
void Lock ()
 Implements C# lock() statement locking. Call directly or use LockContext sentry object. More...
 
void Unlock ()
 Implements C# lock() statement unlocking. Call directly or use LockContext sentry object. More...
 
virtual bool Equals (ptr obj)
 Compares objects using C# Object.Equals semantics. More...
 
virtual ptr MemberwiseClone () const
 Analog of C# Object.MemberwiseClone() method. Enables cloning custom types. More...
 
virtual const TypeInfoGetType () const
 Gets actual type of object. Analog of C# System.Object.GetType() call. More...
 
virtual bool Is (const TypeInfo &targetType) const
 Check if object represents an instance of type described by targetType. Analog of C# 'is' operator. More...
 
virtual void SetTemplateWeakPtr (uint32_t argument)
 Set n'th template argument a weak pointer (rather than shared). Allows switching pointers in containers to weak mode. More...
 
virtual bool FastCast (const Details::FastRttiBase &helper, void **out_ptr) const
 For internal purposes only. More...
 
template<>
bool ReferenceEquals (String const &str, std::nullptr_t)
 Specialization of Object::ReferenceEquals for case of string and nullptr. More...
 
template<>
bool ReferenceEquals (String const &str1, String const &str2)
 Specialization of Object::ReferenceEquals for case of strings. More...
 

Static Public Member Functions

static String ToString (String name, String ns)
 Joins name and namespace into qualified name. More...
 
static System::SharedPtr< XmlQualifiedNameParse (String s, System::SharedPtr< IXmlNamespaceResolver > nsmgr, String &prefix)
 Parses XML qualified name. Not implemented. More...
 
static int32_t Compare (System::SharedPtr< XmlQualifiedName > a, System::SharedPtr< XmlQualifiedName > b)
 Compares names. More...
 
- Static Public Member Functions inherited from System::Object
static bool ReferenceEquals (ptr const &objA, ptr const &objB)
 Compares objects by reference. More...
 
template<typename T >
static std::enable_if<!IsSmartPtr< T >::value, bool >::type ReferenceEquals (T const &objA, T const &objB)
 Compares objects by reference. More...
 
template<typename T >
static std::enable_if<!IsSmartPtr< T >::value, bool >::type ReferenceEquals (T const &objA, std::nullptr_t)
 Reference-compares value type object with nullptr. More...
 
template<typename T1 , typename T2 >
static std::enable_if< IsSmartPtr< T1 >::value &&IsSmartPtr< T2 >::value, bool >::type Equals (T1 const &objA, T2 const &objB)
 Compares reference type objects in C# style. More...
 
template<typename T1 , typename T2 >
static std::enable_if<!IsSmartPtr< T1 >::value &&!IsSmartPtr< T2 >::value, bool >::type Equals (T1 const &objA, T2 const &objB)
 Compares value type objects in C# style. More...
 
static const TypeInfoType ()
 Implements C# typeof(System.Object) construct. More...
 
template<>
bool Equals (float const &objA, float const &objB)
 Emulates C#-style floating point comparison where two NaNs are considered equal even though according to IEC 60559:1989 NaN is not equal to any value, including NaN. More...
 
template<>
bool Equals (double const &objA, double const &objB)
 Emulates C#-style floating point comparison where two NaNs are considered equal even though according to IEC 60559:1989 NaN is not equal to any value, including NaN. More...
 

Static Public Attributes

static const System::SharedPtr< XmlQualifiedNameEmpty
 Empty value. More...
 

Additional Inherited Members

- Public Types inherited from System::Object
typedef SmartPtr< Objectptr
 Alias for smart pointer type. More...
 

Detailed Description

Represents XML qualified name.

Constructor & Destructor Documentation

◆ XmlQualifiedName() [1/3]

System::Xml::XmlQualifiedName::XmlQualifiedName ( )

Constructs empty qualified name.

◆ XmlQualifiedName() [2/3]

System::Xml::XmlQualifiedName::XmlQualifiedName ( String  name)

Constructor.

Parameters
nameName part of XML qualified name.

◆ XmlQualifiedName() [3/3]

System::Xml::XmlQualifiedName::XmlQualifiedName ( String  name,
String  ns 
)

Constructor.

Parameters
nameName part of XML qualified name.
nsNamespace part of XML qualified name.

Member Function Documentation

◆ Atomize()

void System::Xml::XmlQualifiedName::Atomize ( System::SharedPtr< XmlNameTable nameTable)

Atomizes XML qualified name. Not implemented.

◆ Clone()

System::SharedPtr<XmlQualifiedName> System::Xml::XmlQualifiedName::Clone ( )

Clones XML qualified name. Not implemented.

◆ Compare()

static int32_t System::Xml::XmlQualifiedName::Compare ( System::SharedPtr< XmlQualifiedName a,
System::SharedPtr< XmlQualifiedName b 
)
static

Compares names.

Parameters
aLHS name to compare.
bRHS name to compare.
Returns
Negative value if a is considered less than b; zero if they are considered equal; otherwise, positive value.

◆ Equals()

bool System::Xml::XmlQualifiedName::Equals ( System::SharedPtr< Object other)
override

Equality check.

Parameters
otherObject to compare to.
Returns
true if other is XmlQualifiedName holding same name as current object, false otherwise.

◆ get_IsEmpty()

bool System::Xml::XmlQualifiedName::get_IsEmpty ( )

Checks if XML qualified name is empty.

Returns
True if empty, false otherwise.

◆ get_Name()

String System::Xml::XmlQualifiedName::get_Name ( ) const

Gets name part.

Returns
Name part of XML qualified name.

◆ get_Namespace()

String System::Xml::XmlQualifiedName::get_Namespace ( ) const

Gets namespace part.

Returns
Namespace part of XML qualified name.

◆ GetHashCode()

int32_t System::Xml::XmlQualifiedName::GetHashCode ( ) const
overridevirtual

Gets hash code.

Returns
Hashcode.

Reimplemented from System::Object.

◆ Init()

void System::Xml::XmlQualifiedName::Init ( String  name,
String  ns 
)

Initializes object with new name.

Parameters
nameName part of XML qualified name.
nsNamespace part of XML qualified name.

◆ Parse()

static System::SharedPtr<XmlQualifiedName> System::Xml::XmlQualifiedName::Parse ( String  s,
System::SharedPtr< IXmlNamespaceResolver nsmgr,
String prefix 
)
static

Parses XML qualified name. Not implemented.

◆ SetNamespace()

void System::Xml::XmlQualifiedName::SetNamespace ( String  ns)

Sets namespace.

Parameters
nsNamespace to set.

◆ ToString() [1/2]

String System::Xml::XmlQualifiedName::ToString ( ) const
overridevirtual

Converts XML qualified name to string.

Returns
String representation of XML qualified name.

Reimplemented from System::Object.

◆ ToString() [2/2]

static String System::Xml::XmlQualifiedName::ToString ( String  name,
String  ns 
)
static

Joins name and namespace into qualified name.

Parameters
nameName part of XML qualified name.
nsNamespace part of XML qualified name.
Returns
XML qualified name in a string representation.

◆ Verify()

void System::Xml::XmlQualifiedName::Verify ( )

Checks the integrity of XML qualified name. Not implemented.

Member Data Documentation

◆ Empty

const System::SharedPtr<XmlQualifiedName> System::Xml::XmlQualifiedName::Empty
static

Empty value.