xml.cc File Reference
#include "xml.h"
#include "../exception/exception.h"
#include "../tempfile/tempfile.h"
Include dependency graph for xml.cc:
Functions | |
CDoc * | CParseFile (const CString &filename) |
CDoc * | CNewDoc (CNode *rootNode) |
void | CSaveFile (const CString &filename, CDoc *doc, int format) |
void | CSaveFile (ostream &out, CDoc *doc, int format) |
CNode * | CGetRootNode (CDoc *doc) |
CString | CIsNode (const CNode *n) |
bool | CIsNode (const CNode *n, const CString &name) |
CNode * | CGetParentNode (const CNode *n) |
CNode * | CGetChildNode (CNode *n, const CString &name) |
bool | CHasChildNode (CNode *n, const CString &name) |
CString | CGetNodeContent (CNode *n) |
CNode * | CAddNode (CNode *n, const CString &name, const CString &content) |
CNode * | CAddNode (CNode *n, const CString &name, const double content) |
CNode * | CAddNode (CNode *n, CNode *child) |
CNode * | CCopyNode (CNode *n) |
CNode * | CNewNode (const CString &name) |
void | CRemoveNode (CNode *n) |
CNode * | CReplaceNode (CNode *oldNode, CNode *newNode) |
CNode * | CFindNode (CNode *n, const CString &name) |
CNode * | CNextNode (const CNode *n, const CString &name) |
CNode * | CPreviousNode (const CNode *n, const CString &name) |
CString | CGetAttribute (CNode *n, const CString &name) |
bool | CHasAttribute (CNode *n, const CString &name) |
void | CAddAttribute (CNode *n, const CString &name, const CString &value) |
void | CAddAttribute (CNode *n, const CString &name, const unsigned long value) |
void | CSetAttribute (CNode *n, const CString &name, const CString &value) |
void | CRemoveAttribute (CNode *n, const CString &name) |
CId | CGetNumberOfChildNodes (CNode *n, const CString &name) |
Function Documentation
|
CAddAttribute () Add an attribute to the node. Here is the call graph for this function: |
|
CAddAttribute () Add an attribute to the node. |
|
CAddNode () Add a child node to given node. |
|
CAddNode () Add a child node to given node. |
|
CAddNode () Add a child node to given node. |
|
CCopyNode () Create a copy of a node (including attributes and children). |
|
CFindNode () Get a child node with name 'name'. The whole subtree is searched for the node and not only the direct children as with the getNode function. Here is the call graph for this function: |
|
CGetAttribute () Get the value of an attribute. Here is the call graph for this function: |
|
CGetChildNode () Return pointer to node with name 'name' (if exists). Here is the call graph for this function: |
|
CGetNodeContent () Return the content of a node as a string |
|
CGetNumberOfChildNodes () Return the number of child nodes with name 'name'. Here is the call graph for this function: |
|
CGetParentNode () Return pointer to parent of node. |
|
CGetRootNode () Get the root node of the document. |
|
CHasAttribute () Check that attribute is present. |
|
CHasChildNode () Check that the node has a child with name 'name'. Here is the call graph for this function: |
|
CIsNode () Check that node has name 'name'. |
|
CIsNode () Return name of node. |
|
CNewDoc () Create a new document. |
|
CNewNode () Create a new node. |
|
CNextNode () Return pointer to next node on same level. If name is not NULL, next node must have name 'name'. Here is the call graph for this function: |
|
CParseFile () Open a file and parse it into a tree structure. |
|
CPreviousNode () Return pointer to previous node on same level. If name is not NULL, previous node must have name 'name'. Here is the call graph for this function: |
|
CRemoveAttribute () Remove attribute from node. |
|
CRemoveNode () Remove a node and its children from the database. |
|
CReplaceNode () Replace node with new node (old node is returned). |
|
CSaveFile () Output a document to a stream. Here is the call graph for this function: |
|
CSaveFile () Output a document to a file. |
|
CSetAttribute () Set or reset an attribute of the node. |