IoXmlNodeInterface Class Reference IO

#include <ioxmlparser.h>

详细描述

XML node/property object.

公共成员函数

const MAXON_METHOD IoXmlNodeInterface GetPrev () const
const MAXON_METHOD IoXmlNodeInterface GetNext () const
const MAXON_METHOD IoXmlNodeInterface GetUp () const
const MAXON_METHOD IoXmlNodeInterface GetDown () const
MAXON_METHOD IoXmlNodeInterface GetPrev ()
MAXON_METHOD IoXmlNodeInterface GetNext ()
MAXON_METHOD IoXmlNodeInterface GetUp ()
MAXON_METHOD IoXmlNodeInterface GetDown ()
const MAXON_METHOD String GetName () const
const MAXON_METHOD String GetValue () const
const MAXON_METHOD String GetAttributes () const
MAXON_METHOD Result < void >  GetInt ( Int32 &val) const
MAXON_METHOD Result < void >  GetUInt ( UInt32 &val) const
MAXON_METHOD Result < void >  GetInt ( Int64 &val) const
MAXON_METHOD Result < void >  GetUInt ( UInt64 &val) const
MAXON_METHOD Result < void >  GetFloat ( Float &val) const
MAXON_METHOD IoXmlNodeInterface AddChild (const String &strName)
MAXON_METHOD void  移除 ()
MAXON_METHOD void  SetName (const String &strName)
MAXON_METHOD void  SetAttribute (const String &strAttribute)
MAXON_METHOD void  SetValue (const String &strValue)
MAXON_METHOD void  SetValue (const Char *strValue)

静态公共成员函数

static MAXON_METHOD IoXmlNodeInterface Alloc ( MAXON_SOURCE_LOCATION_DECLARATION )

私有成员函数

  MAXON_INTERFACE_NONVIRTUAL ( IoXmlNodeInterface , MAXON_REFERENCE_NORMAL , "net.maxon.interface.ioxmlnode")

成员函数文档编制

◆  MAXON_INTERFACE_NONVIRTUAL()

MAXON_INTERFACE_NONVIRTUAL ( IoXmlNodeInterface   ,
MAXON_REFERENCE_NORMAL   ,
"net.maxon.interface.ioxmlnode"   
)
private

◆  Alloc()

static MAXON_METHOD IoXmlNodeInterface * Alloc ( MAXON_SOURCE_LOCATION_DECLARATION   )
static

◆  GetPrev() [1/2]

const MAXON_METHOD IoXmlNodeInterface * GetPrev ( ) const

@MAXON_ANNOTATION{refclass=false}

◆  GetNext() [1/2]

const MAXON_METHOD IoXmlNodeInterface * GetNext ( ) const

@MAXON_ANNOTATION{refclass=false}

◆  GetUp() [1/2]

const MAXON_METHOD IoXmlNodeInterface * GetUp ( ) const

@MAXON_ANNOTATION{refclass=false}

◆  GetDown() [1/2]

const MAXON_METHOD IoXmlNodeInterface * GetDown ( ) const

@MAXON_ANNOTATION{refclass=false}

◆  GetPrev() [2/2]

MAXON_METHOD IoXmlNodeInterface * GetPrev ( )

Returns the previous object.

返回
Previous object or nullptr if non-existent.

◆  GetNext() [2/2]

MAXON_METHOD IoXmlNodeInterface * GetNext ( )

Returns the next object.

返回
Next object or nullptr if non-existent.

◆  GetUp() [2/2]

MAXON_METHOD IoXmlNodeInterface * GetUp ( )

Returns the parent object.

返回
Parent object or nullptr if non-existent.

◆  GetDown() [2/2]

MAXON_METHOD IoXmlNodeInterface * GetDown ( )

Returns the child object.

返回
Child object or nullptr if non-existent.

◆  GetName()

const MAXON_METHOD String & GetName ( ) const

Returns the XML name property.

返回
Name of this node.

◆  GetValue()

const MAXON_METHOD String & GetValue ( ) const

Returns the XML value property.

返回
Value of this node.

◆  GetAttributes()

const MAXON_METHOD String & GetAttributes ( ) const

Returns the XML attribute property.

返回
Attribute of this node.

◆  GetInt() [1/2]

MAXON_METHOD Result <void> GetInt ( Int32 val ) const

Reads an XML 32-bit integer value.

参数
[out] val The variable that will be filled with the XML value.
返回
True if the value was properly defined.

◆  GetUInt() [1/2]

MAXON_METHOD Result <void> GetUInt ( UInt32 val ) const

Reads an XML 32-bit unsigned integer value.

参数
[out] val The variable that will be filled with the XML value.
返回
True if the value was properly defined.

◆  GetInt() [2/2]

MAXON_METHOD Result <void> GetInt ( Int64 val ) const

Reads an XML 64-bit integer value.

参数
[out] val The variable that will be filled with the XML value.
返回
True if the value was properly defined.

◆  GetUInt() [2/2]

MAXON_METHOD Result <void> GetUInt ( UInt64 val ) const

Reads an XML 64-bit unsigned integer value.

参数
[out] val The variable that will be filled with the XML value.
返回
True if the value was properly defined.

◆  GetFloat()

MAXON_METHOD Result <void> GetFloat ( Float val ) const

Reads an XML floating point value.

参数
[out] val The variable that will be filled with the XML value.
返回
True if the value was properly defined.

◆  AddChild()

MAXON_METHOD IoXmlNodeInterface * AddChild ( const String strName )

Add a child to the current node. The child will be added at the end of the child chain.

参数
[in] strName Name to set.
返回
The new child node or nullptr in case of not enough memory.

◆  Remove()

MAXON_METHOD void Remove ( )

Removes a node.

◆  SetName()

MAXON_METHOD void SetName ( const String strName )

Sets the XML name property. Keep in mind that you need to follow XML naming rules: http://www.w3schools.com/xml/xml_elements.asp .

参数
[in] strName Name to set.

◆  SetAttribute()

MAXON_METHOD void SetAttribute ( const String strAttribute )

Sets the XML attribute property. See more here: http://www.w3schools.com/xml/xml_attributes.asp .

参数
[in] strAttribute Attribute to set.

◆  SetValue() [1/2]

MAXON_METHOD void SetValue ( const String strValue )

Sets the XML value property.

参数
[in] strValue Value to set.

◆  SetValue() [2/2]

MAXON_METHOD void SetValue ( const Char strValue )

Sets the XML value property.

参数
[in] strValue C-String to set.