JEMRIS  2.8.1
open-source MRI simulations
List of all members | Public Member Functions | Private Attributes
XMLIO Class Reference

XML file-IO class. More...

#include <XMLIO.h>

+ Collaboration diagram for XMLIO:

Public Member Functions

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

Private Attributes

XercesDOMParser::ValSchemes valScheme
 
bool doNamespaces
 
bool doSchema
 
bool schemaFullChecking
 
bool doCreate
 
XercesDOMParser * m_parser
 
DOMTreeErrorReporter * m_err_reporter
 

Detailed Description

XML file-IO class.

Member Function Documentation

DOMDocument * XMLIO::Parse ( string  uri)

Read in the XML file and return a DOM object.

Parameters
uriURI to file.
Returns
Contained DOM document.

+ 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
nodeThe node to start the travel.
ptrPointer to an object to be passed to the function.
funPointer to static function which is executed for the node.
Returns
DOMNode at which the recursion is aborted by the static function.
bool XMLIO::Write ( DOMImplementation *  impl,
DOMNode *  node,
string  filename 
)

Write DOM node to file.

Parameters
implDOM implementation
nodeNode for output
filenameFile name
Returns
Success

+ Here is the caller graph for this function:


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

-- last change 17.06.2016 | Tony Stoecker | Imprint --