Stream reader for binary XML files.
The interface is similar to XmlReader so that it is easy to switch between the 2 classes. Use the N3 tool binaryxmlconverter3.exe to convert an XML file to a binary XML file.
- Copyright
- (C) 2009 Radon Labs GmbH (C) 2013-2020 Individual contributors, see AUTHORS file
|
| | BXmlReader () |
| | constructor
|
| |
| virtual | ~BXmlReader () |
| | destructor
|
| |
| virtual bool | Open () |
| | begin reading from the stream
|
| |
| virtual void | Close () |
| | end reading from the stream
|
| |
| bool | HasNode (const Util::String &path) const |
| | return true if node exists
|
| |
| Util::String | GetCurrentNodeName () const |
| | get short name of current node
|
| |
| Util::String | GetCurrentNodePath () const |
| | get path to current node
|
| |
| void | SetToNode (const Util::String &path) |
| | set current node as path
|
| |
| bool | SetToFirstChild (const Util::String &name="") |
| | set current node to first child node, return false if no child exists
|
| |
| bool | SetToNextChild (const Util::String &name="") |
| | set current node to next sibling node, return false if no more sibling exists
|
| |
| bool | SetToParent () |
| | set current node to parent, return false if no parent exists
|
| |
| bool | HasAttr (const char *attr) const |
| | return true if matching attribute exists on current node
|
| |
| Util::Array< Util::String > | GetAttrs () const |
| | return names of all attrs on current node
|
| |
| Util::String | GetString (const char *attr) const |
| | get string attribute value from current node
|
| |
| bool | GetBool (const char *attr) const |
| | get bool attribute value from current node
|
| |
| int | GetInt (const char *attr) const |
| | get int attribute value from current node
|
| |
| float | GetFloat (const char *attr) const |
| | get float attribute value from current node
|
| |
| Math::vec2 | GetVec2 (const char *attr) const |
| | get vec2 attribute value from current node
|
| |
| Math::vec4 | GetVec4 (const char *attr) const |
| | get vec4 attribute value from current node
|
| |
| Math::mat4 | GetMat4 (const char *attr) const |
| | get mat4 attribute value from current node
|
| |
| template<typename T> |
| T | Get (const char *attr) const |
| | generic getter for extension types
|
| |
| Util::String | GetOptString (const char *attr, const Util::String &defaultValue) const |
| | get optional string attribute value from current node
|
| |
| bool | GetOptBool (const char *attr, bool defaultValue) const |
| | get optional bool attribute value from current node
|
| |
| int | GetOptInt (const char *attr, int defaultValue) const |
| | get optional int attribute value from current node
|
| |
| float | GetOptFloat (const char *attr, float defaultValue) const |
| | get optional float attribute value from current node
|
| |
| Math::vec2 | GetOptVec2 (const char *attr, const Math::vec2 &defaultValue) const |
| | get vec2 attribute value from current node
|
| |
| Math::vec4 | GetOptVec4 (const char *attr, const Math::vec4 &defaultValue) const |
| | get optional vec4 attribute value from current node
|
| |
| Math::float2 | GetOptVec2 (const char *attr, const Math::float2 &defaultValue) const |
| | get vec2 attribute value from current node
|
| |
| Math::float4 | GetOptVec4 (const char *attr, const Math::float4 &defaultValue) const |
| | get optional vec4 attribute value from current node
|
| |
| Math::mat4 | GetOptMat4 (const char *attr, const Math::mat4 &defaultValue) const |
| | get optional mat4 attribute value from current node
|
| |
| | StreamReader () |
| | constructor
|
| |
| virtual | ~StreamReader () |
| | destructor
|
| |
| void | SetStream (const Ptr< Stream > &s) |
| | set stream to read from
|
| |
| const Ptr< Stream > & | GetStream () const |
| | get currently set stream
|
| |
| bool | HasStream () const |
| | return true if a stream is set
|
| |
| bool | Eof () const |
| | return true if the stream has reached EOF
|
| |
| bool | IsOpen () const |
| | return true if currently open
|
| |
| | RefCounted () |
| | constructor
|
| |
| int | GetRefCount () const |
| | get the current refcount
|
| |
| void | AddRef () |
| | increment refcount by one
|
| |
| void | Release () |
| | decrement refcount and destroy object if refcount is zero
|
| |
| bool | IsInstanceOf (const Rtti &rtti) const |
| | return true if this object is instance of given class
|
| |
| bool | IsInstanceOf (const Util::String &className) const |
| | return true if this object is instance of given class by string
|
| |
| bool | IsInstanceOf (const Util::FourCC &classFourCC) const |
| | return true if this object is instance of given class by fourcc
|
| |
| bool | IsA (const Rtti &rtti) const |
| | return true if this object is instance of given class, or a derived class
|
| |
| bool | IsA (const Util::String &rttiName) const |
| | return true if this object is instance of given class, or a derived class, by string
|
| |
| bool | IsA (const Util::FourCC &rttiFourCC) const |
| | return true if this object is instance of given class, or a derived class, by fourcc
|
| |
| const Util::String & | GetClassName () const |
| | get the class name
|
| |
| Util::FourCC | GetClassFourCC () const |
| | get the class FourCC code
|
| |