Provides non-cached forward-only access to XML data. Objects of this class should only be allocated using System::MakeObject() function. Never create instance of this type on stack or using operator new, as it will result in runtime errors and/or assertion faults. Always wrap this class into System::SmartPtr pointer and use this pointer to pass it to functions as argument.
More...
|
virtual String | get_Name () |
| Returns the qualified name of the current node. More...
|
|
virtual String | get_Prefix () |
| Returns the prefix of the current node. More...
|
|
virtual String | get_LocalName () |
| Returns the local name of the current node. More...
|
|
virtual String | get_NamespaceURI () |
| Returns the namespace URI of the current node. More...
|
|
virtual String | get_BaseURI () |
| Returns the base URI of the current node. More...
|
|
virtual String | get_Value ()=0 |
| Returns the value of the current node. More...
|
|
virtual SharedPtr< Schema::IXmlSchemaInfo > | get_SchemaInfo () |
|
String | idx_get (const String &name) |
| Returns the value of the attribute with the specified name. More...
|
|
virtual ReadState | get_ReadState () |
| Returns the current state of the reader. More...
|
|
virtual bool | get_IsEmptyElement ()=0 |
| Determines if the current node is an empty element. More...
|
|
virtual bool | get_IsDefault () |
| Determines if the current node is an attribute that was generated from the default value defined in the DTD or schema. More...
|
|
virtual int | get_Depth () |
| Returns the depths of the current node in the XML tree. More...
|
|
virtual bool | get_EOF () |
| Determines if the reader has reached the end of stream. More...
|
|
virtual bool | get_HasAttributes () |
| Determines if the current node has any attributes. More...
|
|
virtual int | get_AttributeCount ()=0 |
| Returns the number of attributes in the current node. More...
|
|
virtual bool | get_HasValue () |
| Determines if the current node has a value. More...
|
|
virtual String | get_XmlLang () |
| Returns the current xml:lang scope. More...
|
|
virtual UChar | get_QuoteChar () |
| Returns the used as quotation mark character used to enclose the value of an XML attribute node. More...
|
|
virtual XmlNodeType | get_NodeType ()=0 |
| Returns the type of the current node. More...
|
|
virtual bool | get_CanResolveEntity () |
| Determines whether the current XmlReader object can parse and resolve entities. More...
|
|
virtual String | GetAttribute (int32_t index) |
| Returns the value of the attribute with the specified index. More...
|
|
virtual String | GetAttribute (const String &name) |
| Returns the value of the attribute with the specified name. More...
|
|
virtual bool | MoveToAttribute (const String &name) |
| Moves the reader's position to the attribute with the specified name. More...
|
|
virtual String | GetAttribute (const String &localName, const String &namespaceURI) |
| Gets the value of the attribute with the specified local name and namespace URI. More...
|
|
virtual void | MoveToAttribute (int index) |
| Moves the reader's position to the attribute with the specified index. More...
|
|
virtual bool | MoveToNextAttribute () |
| Moves the reader's position to the next attribute. More...
|
|
virtual bool | MoveToFirstAttribute () |
| Moves the reader's position to the first attribute in the list of attributes of the current node. More...
|
|
virtual bool | ReadToNextSibling (const String &name) |
| Moves the position of the reader to the next sibling with the specified name. More...
|
|
virtual Ptr | ReadSubtree () |
| Read an element and all its children, and return a new XmlReader object set to ReadState::Initial. More...
|
|
virtual XmlNodeType | MoveToContent ()=0 |
| Moves the position of the reader to the next content node, skipping the non-content nodes. More...
|
|
virtual bool | MoveToElement ()=0 |
| Moves the reader's position to the element node that contains the current attribute node. More...
|
|
virtual bool | Next () |
| Navigates to the next token. More...
|
|
virtual bool | Read ()=0 |
| Reads the next node. More...
|
|
virtual String | LookupNamespace (const String &prefix)=0 |
| Resolves a namespace prefix in the scope of the current element. More...
|
|
virtual void | Skip ()=0 |
| Skips the children of the current node. More...
|
|
virtual void | Close ()=0 |
| Changes the state of the reader to ReadState::Closed. More...
|
|
virtual String | ReadString ()=0 |
| Reads the contents of an element or a text node. More...
|
|
virtual void | ReadStartElement ()=0 |
| Checks if the current content node is an element and moves the the reader's position to the next node. More...
|
|
virtual void | ReadStartElement (const String &value)=0 |
| Checks if the current content node is an element with the specified qualified name and moves the the reader's position to the next node. More...
|
|
virtual void | ReadStartElement (const String &localName, const String &namespaceUri)=0 |
| Checks if the current content node is an element with the specified local name and namespace URI and moves the the reader's position to the next node. More...
|
|
virtual String | ReadInnerXml ()=0 |
| Returns a string containing all the content of the current node, including the markup, but excluding start and end tags. More...
|
|
virtual String | ReadOuterXml ()=0 |
| Returns a string containing all the content of the current node, including the markup, and including start and end tags. More...
|
|
virtual bool | ReadToFollowing (const String &name) |
| Reads until an element with the specified name is encountered. More...
|
|
virtual bool | ReadToFollowing (const String &localName, const String &namespaceURI) |
| Reads until an element with the specified local name name and namespace URI is encountered. More...
|
|
virtual bool | ReadToDescendant (const String &name) |
| Reads to the first descendant of the current element with the given name. More...
|
|
virtual bool | ReadToDescendant (const String &localName, const String &namespaceURI) |
|
virtual SharedPtr< System::Xml::XmlNameTable > | get_NameTable () |
| Gets name table associated with document being read. More...
|
|
virtual bool | ReadContentAsBoolean () |
| Reads current element's contents as boolean. More...
|
|
virtual double | ReadContentAsDouble () |
| Reads current element's contents as double. More...
|
|
virtual float | ReadContentAsFloat () |
| Reads current element's contents as float. More...
|
|
virtual Decimal | ReadContentAsDecimal () |
| Reads current element's contents as decimal. More...
|
|
virtual int32_t | ReadContentAsInt () |
| Reads current element's contents as integer. More...
|
|
virtual int64_t | ReadContentAsLong () |
| Reads current element's contents as long integer. More...
|
|
virtual String | ReadContentAsString () |
| Reads current element's contents as string. More...
|
|
virtual bool | ReadAttributeValue ()=0 |
| Reads next attribute's value. More...
|
|
virtual DateTime | ReadContentAsDateTime () |
| Concatenates values of textual nodes of the current content, ignoring comments and PIs, expanding entity references, and converts the content to a DateTime. Stops at start tags and end tags. More...
|
|
virtual DateTime | ReadElementContentAsDateTime () |
| Returns the content of the current element as a DateTime. Moves to the node following the element's end tag. More...
|
|
virtual DateTime | ReadElementContentAsDateTime (const String &localName, const String &namespaceURI) |
| Checks local name and namespace of the current element and returns its content as a DateTime. Moves to the node following the element's end tag. More...
|
|
virtual int | ReadElementContentAsInt (const String &localName, const String &namespaceURI) |
| Checks if the current node is an element whose local name and namespce URI match the specified values and returns its content as 32-bit integer value. More...
|
|
virtual int | ReadElementContentAsInt () |
| Returns the content of the current element as an int. Moves to the node following the element's end tag. More...
|
|
virtual int | ReadElementContentAsBase64 (const ArrayPtr< uint8_t > &buffer, int index, int count) |
| Call this methods until it returns 0 to get all the data. More...
|
|
virtual bool | ReadElementContentAsBoolean () |
| Returns the content of the current element as a boolean. Moves to the node following the element's end tag. More...
|
|
virtual bool | ReadElementContentAsBoolean (const String &localName, const String &namespaceURI) |
| Checks if the current node is an element whose local name and namespce URI match the specified values and returns its content as boolean value. More...
|
|
virtual String | ReadElementContentAsString (const String &localName, const String &namespaceURI) |
| Checks if the current node is an element whose local name and namespce URI match the specified values and returns its content as string. More...
|
|
virtual String | ReadElementContentAsString () |
| Returns the content of the current element as a string. Moves to the node following the element's end tag. More...
|
|
virtual void | ReadEndElement () |
| Determines if the current content node is an end tag and advances the reader to the next node. More...
|
|
virtual bool | IsStartElement () |
| Calls MoveToContent() and then determines if the current node is a start tag or an empty element tag. More...
|
|
virtual bool | IsStartElement (const String &name) |
| Calls MoveToContent() and then determines if the current node is a start tag or an empty element tag and if the found node's qualified name matches the specified value. More...
|
|
virtual bool | IsStartElement (const String &name, const String &ns) |
| Calls MoveToContent() and then determines if the current node is a start tag or an empty element tag and if the found node's qualified name matches the specified value. More...
|
|
virtual String | ReadElementString ()=0 |
| Reads the contents of a text-only element. More...
|
|
virtual String | ReadElementString (const String &value)=0 |
| Checks if the current node is an element whose qualified name matches the specified value and reads its content. More...
|
|
virtual String | ReadElementString (const String &localName, const String &namespaceUri)=0 |
| Checks if the current node is an element whose local name and namespce URI match the specified values and returns its content as string. More...
|
|
virtual void | ResolveEntity ()=0 |
| resolves the entity reference for EntityReference nodes. More...
|
|
virtual SharedPtr< XmlReaderSettings > | get_Settings () const |
| Returns the settings of the XmlReader. More...
|
|
xmlTextReader * | native () const |
| Returns a pointer to the underlying libxml2 xmlTextReader object. More...
|
|
xmlDoc * | native_doc () |
| Returns a pointer to the current document used by the xmlTextReader object. More...
|
|
virtual void | RaiseLastError () |
|
virtual void | Dispose () |
| Does nothing. More...
|
|
| 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...
|
|
Object & | operator= (Object const &x) |
| Assignment operator. Doesn't copy anything, really, just initializes new object and enables copy constructing subclasses. More...
|
|
Object * | SharedRefAdded () |
| 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 int32_t | GetHashCode () const |
| Analog of C# Object.GetHashCode() method. Enables hashing of custom objects. More...
|
|
virtual String | ToString () const |
| Analog of C# Object.ToString() method. Enables converting custom objects to string. More...
|
|
virtual ptr | MemberwiseClone () const |
| Analog of C# Object.MemberwiseClone() method. Enables cloning custom types. More...
|
|
virtual const TypeInfo & | GetType () 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 XmlReader::Ptr | Create (const String &inputUri) |
| Constructs an instance of the XmlReader class that reads XML data from the specified file. More...
|
|
static XmlReader::Ptr | Create (const SharedPtr< System::IO::Stream > &input) |
| Constructs an instance of the XmlReader class that reads XML data from the specified stream. More...
|
|
static XmlReader::Ptr | Create (const SharedPtr< System::IO::TextReader > &input) |
| Constructs an instance of the XmlReader class that reads XML data from the specified TextReader. More...
|
|
static XmlReader::Ptr | Create (const String &inputUri, const SharedPtr< XmlReaderSettings > &settings) |
| Constructs an instance of the XmlReader class that reads XML data from the specified file using the specified settings. More...
|
|
static XmlReader::Ptr | Create (const SharedPtr< System::IO::Stream > &input, const SharedPtr< XmlReaderSettings > &settings) |
| Constructs an instance of the XmlReader class that reads XML data from the specified stream using the specified settings. More...
|
|
static XmlReader::Ptr | Create (const SharedPtr< System::IO::Stream > &input, const SharedPtr< XmlReaderSettings > &settings, const String &baseUri) |
| NOT IMPLEMENTED. More...
|
|
static XmlReader::Ptr | Create (const SharedPtr< System::IO::TextReader > &input, const SharedPtr< XmlReaderSettings > &settings) |
| Constructs an instance of the XmlReader class that reads XML data from the specified TextReader using the specified settings. More...
|
|
static XmlReader::Ptr | Create (const SharedPtr< System::IO::TextReader > &input, const SharedPtr< XmlReaderSettings > &settings, const SharedPtr< XmlParserContext > &inputContext) |
| Constructs an instance of the XmlReader class that reads XML data from the specified TextReader using the specified settings and cotext information for parsing. More...
|
|
static XmlReader::Ptr | Create (const SharedPtr< System::IO::Stream > &input, const SharedPtr< XmlReaderSettings > &settings, const SharedPtr< XmlParserContext > &inputContext) |
| Constructs an instance of the XmlReader class that reads XML data from the specified stream using the specified settings and cotext information for parsing. More...
|
|
static XmlReader::Ptr | Create (const SharedPtr< System::IO::TextReader > &input, const SharedPtr< XmlReaderSettings > &settings, const System::String &baseUrl) |
| Constructs an instance of the XmlReader class that reads XML data from the specified TextReader using the specified settings and base URI. More...
|
|
static XmlReader::Ptr | Create (const XmlReader::Ptr &input, const SharedPtr< XmlReaderSettings > &settings) |
| Constructs an instance of the XmlReader class that uses the specified XmlReader object as underlying reader. More...
|
|
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 TypeInfo & | Type () |
| 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...
|
|
Provides non-cached forward-only access to XML data. Objects of this class should only be allocated using System::MakeObject() function. Never create instance of this type on stack or using operator new, as it will result in runtime errors and/or assertion faults. Always wrap this class into System::SmartPtr pointer and use this pointer to pass it to functions as argument.