link to homepage

Institute for Neuroscience and Medicine

Navigation and service


API documentation

XMLIO Class Reference

XML file-IO class. More...

#include <XMLIO.h>

Collaboration diagram for XMLIO:

List of all members.

Public Member Functions

 XMLIO ()
 Constructor.
virtual ~XMLIO ()
 Destructor.
DOMDocument * Parse (string uri)
 Read in the XML file and return a DOM object.
DOMNode * RunTree (DOMNode *node, void *ptr, unsigned int(*fun)(void *, DOMNode *))
 Recursive run through XML tree and do something.
bool Write (DOMImplementation *impl, DOMNode *node, string filename)
 Write DOM node to file.

Detailed Description

XML file-IO class.

Definition at line 58 of file XMLIO.h.


Member Function Documentation

DOMDocument * XMLIO::Parse ( string  uri  ) 

Read in the XML file and return a DOM object.

Parameters:
uri URI to file.
Returns:
Contained DOM document.

Definition at line 67 of file XMLIO.cpp.

Referenced by SequenceTree::Initialize(), CoilArray::Initialize(), and Simulator::Simulator().

Here is the caller graph for this function:

DOMNode * XMLIO::RunTree ( DOMNode *  node,
void *  ptr,
unsigned int(*)(void *, DOMNode *)  fun 
)

Recursive run through XML tree and do something.

Parameters:
node The node to start the travel.
ptr Pointer to an object to be passed to the function.
fun Pointer to static function which is executed for the node.
Returns:
DOMNode at which the recursion is aborted by the static function.

Definition at line 153 of file XMLIO.cpp.

bool XMLIO::Write ( DOMImplementation *  impl,
DOMNode *  node,
string  filename 
)

Write DOM node to file.

Parameters:
impl DOM implementation
node Node for output
filename File name
Returns:
Success

Definition at line 174 of file XMLIO.cpp.

Referenced by SequenceTree::SerializeModules(), and Module::WriteStaticXML().

Here is the caller graph for this function:


The documentation for this class was generated from the following files:

Servicemeu