XML.cpp File Reference

#include <string>
#include <typeinfo>
#include <stdlib.h>
#include <libxml/tree.h>
#include <sofa/simulation/tree/xml/XML.h>
#include <sofa/helper/system/FileRepository.h>
#include <sofa/helper/system/SetDirectory.h>
#include <string.h>

Include dependency graph for XML.cpp:

Go to the source code of this file.


Namespaces

namespace  sofa
 Main SOFA namespace.
namespace  sofa::simulation
 Simulation data structure and scheduling (scene-graph, multithread support).
namespace  sofa::simulation::tree
 Default (and currently only) implementation of the simulation data structure using a tree.
namespace  sofa::simulation::tree::xml
 XML I/O classes.

Defines

#define is(n1, n2)   (! xmlStrcmp((const xmlChar*)n1,(const xmlChar*)n2))
#define getProp(n)   ( xmlGetProp(cur, (const xmlChar*)n) )

Functions

void sofa::simulation::tree::xml::recReplaceAttribute (BaseElement *node, const char *attr, const char *value, const char *nodename=NULL)
BaseElement * sofa::simulation::tree::xml::includeNode (xmlNodePtr root, const char *basefilename)
BaseElement * sofa::simulation::tree::xml::attributeNode (xmlNodePtr root, const char *basefilename)
BaseElement * sofa::simulation::tree::xml::createNode (xmlNodePtr root, const char *basefilename, bool isRoot=false)
static void sofa::simulation::tree::xml::dumpNode (BaseElement *node, std::string prefix0="==", std::string prefix=" ")
BaseElement * sofa::simulation::tree::xml::processXMLLoading (const char *filename, const xmlDocPtr &doc)
BaseElement * sofa::simulation::tree::xml::loadFromMemory (const char *filename, const char *data, unsigned int size)
BaseElement * sofa::simulation::tree::xml::loadFromFile (const char *filename)

Variables

int sofa::simulation::tree::xml::numDefault = 0


Define Documentation

#define getProp ( n   )     ( xmlGetProp(cur, (const xmlChar*)n) )

Definition at line 53 of file XML.cpp.

#define is ( n1,
n2   )     (! xmlStrcmp((const xmlChar*)n1,(const xmlChar*)n2))

Definition at line 52 of file XML.cpp.


Generated on Sun Nov 23 04:12:49 2008 for Sofa by  doxygen 1.5.7.1