Asposecpplib

Represents XML qualified name. More...

Inherits System::Object.

Public Member Functions

ASPOSECPP_SHARED_API String get_Namespace () const
 Gets namespace part. More...
 
ASPOSECPP_SHARED_API String get_Name () const
 Gets name part. More...
 
ASPOSECPP_SHARED_API bool get_IsEmpty ()
 Checks if XML qualified name is empty. More...
 
ASPOSECPP_SHARED_API XmlQualifiedName ()
 Constructs empty qualified name. More...
 
ASPOSECPP_SHARED_API XmlQualifiedName (String name)
 Constructor. More...
 
ASPOSECPP_SHARED_API XmlQualifiedName (String name, String ns)
 Constructor. More...
 
ASPOSECPP_SHARED_API int32_t GetHashCode () const override
 Gets hash code. More...
 
ASPOSECPP_SHARED_API String ToString () const override
 Converts XML qualified name to string. More...
 
virtual ASPOSECPP_SHARED_API bool Equals (System::SharedPtr< Object > other) override
 Equality check. More...
 
ASPOSECPP_SHARED_API void Init (String name, String ns)
 Initializes object with new name. More...
 
ASPOSECPP_SHARED_API void SetNamespace (String ns)
 Sets namespace. More...
 
ASPOSECPP_SHARED_API void Verify ()
 Checks the integrity of XML qualified name. Not implemented. More...
 
ASPOSECPP_SHARED_API void Atomize (System::SharedPtr< XmlNameTable > nameTable)
 Atomizes XML qualified name. Not implemented. More...
 
ASPOSECPP_SHARED_API System::SharedPtr< XmlQualifiedNameClone ()
 Clones XML qualified name. Not implemented. More...
 
- Public Member Functions inherited from System::Object
ASPOSECPP_SHARED_API Object ()
 Creates object. Initializes all internal data structures. More...
 
virtual ASPOSECPP_SHARED_API ~Object ()
 Destroys object. Frees all internal data structures. More...
 
ASPOSECPP_SHARED_API 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 refernce counter. More...
 
ASPOSECPP_SHARED_API void Lock ()
 Implements C# lock() statement locking. Call directly or use LockContext sentry object. More...
 
ASPOSECPP_SHARED_API void Unlock ()
 Implements C# lock() statement unlocking. Call directly or use LockContext sentry object. More...
 
virtual ASPOSECPP_SHARED_API bool Equals (ptr obj)
 Compares objects using C# Object.Equals semantics. More...
 
virtual ASPOSECPP_SHARED_API ptr MemberwiseClone () const
 Analog of C# Object.MemberwiseClone() method. Enables cloning custom types. More...
 
virtual ASPOSECPP_SHARED_API const TypeInfoGetType () const
 Gets actual type of object. Analog of C# System.Object.GetType() call. More...
 
virtual ASPOSECPP_SHARED_API bool Is (const TypeInfo &targetType) const
 Check if object represents an instance of type described by targetType. Analog of C# 'is' operator. More...
 
virtual ASPOSECPP_SHARED_API void SetTemplateWeakPtr (unsigned int argument)
 Set n'th template argument a weak pointer (rather than shared). Allows switching pointers in containers to weak mode. 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 ASPOSECPP_SHARED_API String ToString (String name, String ns)
 Joins name and namespace into qualified name. More...
 
static ASPOSECPP_SHARED_API System::SharedPtr< XmlQualifiedNameParse (String s, System::SharedPtr< IXmlNamespaceResolver > nsmgr, String &prefix)
 Parses XML qualified name. Not implemented. More...
 
static ASPOSECPP_SHARED_API 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 ()
 Impleemnts 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 System::SharedPtr< XmlQualifiedNameEmpty
 Empty value. More...
 

Additional Inherited Members

- Public Types inherited from System::Object
typedef SmartPtr< Objectptr
 Alias for smart pointer type. More...
 
typedef System::Details::SharedMembersType shared_members_type
 structure to keep list of shared pointers contained in object. More...
 

Detailed Description

Represents XML qualified name.

Constructor & Destructor Documentation

◆ XmlQualifiedName() [1/3]

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

Constructs empty qualified name.

◆ XmlQualifiedName() [2/3]

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

Constructor.

Parameters
nameName part of XML qualified name.

◆ XmlQualifiedName() [3/3]

ASPOSECPP_SHARED_API 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()

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

Atomizes XML qualified name. Not implemented.

◆ Clone()

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

Clones XML qualified name. Not implemented.

◆ Compare()

static ASPOSECPP_SHARED_API 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()

virtual ASPOSECPP_SHARED_API bool System::Xml::XmlQualifiedName::Equals ( System::SharedPtr< Object other)
overridevirtual

Equality check.

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

◆ get_IsEmpty()

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

Checks if XML qualified name is empty.

Returns
True if empty, false otherwise.

◆ get_Name()

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

Gets name part.

Returns
Name part of XML qualified name.

◆ get_Namespace()

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

Gets namespace part.

Returns
Namespace part of XML qualified name.

◆ GetHashCode()

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

Gets hash code.

Returns
Hashcode.

Reimplemented from System::Object.

◆ Init()

ASPOSECPP_SHARED_API 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 ASPOSECPP_SHARED_API System::SharedPtr<XmlQualifiedName> System::Xml::XmlQualifiedName::Parse ( String  s,
System::SharedPtr< IXmlNamespaceResolver nsmgr,
String prefix 
)
static

Parses XML qualified name. Not implemented.

◆ SetNamespace()

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

Sets namespace.

Parameters
nsNamespace to set.

◆ ToString() [1/2]

ASPOSECPP_SHARED_API 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 ASPOSECPP_SHARED_API 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()

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

Checks the integrity of XML qualified name. Not implemented.

Member Data Documentation

◆ Empty

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

Empty value.