CRM64Pro GDK v0.11.0
A free cross-platform game development kit built on top of SDL 3.0
Loading...
Searching...
No Matches
Public Member Functions | List of all members
CRM64Pro::XML

XML Object class. More...

Inherits CRM64Pro::ObjectBase.

Public Member Functions

Sint32 info (Sint32 iMode=0)
 Request XML object information.
 
Sint32 getName (string &sName)
 Get the name.
 
Uint32 getID ()
 Get the ID.
 
Sint32 nodePointTo (Sint32 iParam, char *szNodes,...)
 Search and point to the given node or subnode at any level.
 
Sint32 nodeFirst ()
 Point to the first XML node (the root node).
 
Sint32 nodeNext ()
 Point to the next node (from current pointed node).
 
Sint32 nodePrev ()
 Point to the previous node (from current pointed node).
 
Sint32 nodeParent ()
 Point to the parent node (from current pointed node).
 
Sint32 nodeChild ()
 Point to the first child node (from current pointed node).
 
Sint32 nodeStore ()
 Store node pointer position.
 
Sint32 nodeRestore ()
 Restore node pointer position.
 
Sint32 nodeRemove ()
 Remove pointed node and all its subnodes and attributes.
 
Sint32 nodeCreate (const string &sNode)
 Create a new node inside the pointed node and point to it.
 
Sint32 nodeRename (const string &sNode)
 Rename pointed node.
 
Sint32 nodeGetName (string &sNode)
 Get the name of pointed node.
 
Sint32 setAttribute (const string &sAttr, const string &sValue)
 Set an attribute inside pointed node with a string value.
 
Sint32 setAttribute (const string &sAttr, const Sint32 &iValue)
 Set an attribute inside pointed node with an integer value.
 
Sint32 setAttribute (const string &sAttr, const double &dValue)
 Set an attribute inside pointed node with an integer value.
 
Sint32 getAttribute (const string &sAttr, string &sValue)
 Get the string value of an attribute inside the pointed node.
 
Sint32 getAttribute (const string &sAttr, Sint32 &iValue)
 Get the integer value of an attribute inside the pointed node.
 
Sint32 getAttribute (const string &sAttr, double &dValue)
 Get the double value of an attribute inside the pointed node.
 
Sint32 removeAttribute (const string &sAttr)
 Remove an attribute and its value inside the pointed node.
 
Sint32 setText (const string &sText)
 Set a text inside the pointed node.
 
Sint32 getText (string &sText)
 Get the text contained in the pointed node.
 
Sint32 removeText ()
 Remove the text inside the pointed node.
 
Sint32 setComment (const string &sComment)
 Set a comment text inside the pointed node.
 
Sint32 getComment (string &sComment)
 Get the comment text contained in the pointed node.
 
Sint32 removeComment ()
 Remove the comment text inside the pointed node.
 
Sint32 saveToFile (const string &sFile)
 Export the XML to an external file.
 
Sint32 save (const string &sFileCDC)
 Save the XML in to a CDC file.
 
Sint32 save (Sint32 idCDC)
 Save the XML in to a CDC file.
 

Detailed Description

XML Object class.