RobWorkProject
Classes | Public Member Functions | List of all members
BoostXMLParser Class Reference

a DOMParser implementation based on the Boost xml parser in propertytree More...

#include <BoostXMLParser.hpp>

Inherits DOMParser.

Classes

class  BoostInitializer
 Utility class which initializes Boost local static variables. More...
 

Public Member Functions

 BoostXMLParser ()
 constructor
 
void load (const std::string &filename)
 parse from file More...
 
void load (std::istream &input)
 parse from stream More...
 
void save (const std::string &filename)
 save DOM structure to file More...
 
void save (std::ostream &input)
 save DOM structure to stream More...
 
void setDebug (bool debug)
 Enable/disable debugging to the debug Log. More...
 
bool isDebug ()
 Get status of debugging. More...
 
DOMElem::Ptr getRootElement ()
 get the top/root element in the DOM structure More...
 
- Public Member Functions inherited from DOMParser
virtual ~DOMParser ()
 destructor
 
virtual void setSchema (const std::string &filename)
 specify the schema file More...
 

Additional Inherited Members

- Public Types inherited from DOMParser
typedef rw::common::Ptr< DOMParserPtr
 smart pointer type
 
- Static Public Member Functions inherited from DOMParser
static rw::common::Ptr< DOMParsermake ()
 make an instance of the default DOM parser More...
 
- Protected Member Functions inherited from DOMParser
 DOMParser ()
 constructor
 
- Protected Attributes inherited from DOMParser
std::string _schemaFile
 Filename of schema.
 

Detailed Description

a DOMParser implementation based on the Boost xml parser in propertytree

Member Function Documentation

◆ getRootElement()

DOMElem::Ptr getRootElement ( )
inlinevirtual

get the top/root element in the DOM structure

Returns
root element of dom structure

Implements DOMParser.

◆ isDebug()

bool isDebug ( )
inline

Get status of debugging.

Returns
true if enabled, false if disabled.

◆ load() [1/2]

void load ( const std::string &  filename)
virtual

parse from file

Parameters
filename[in] name of file

Implements DOMParser.

◆ load() [2/2]

void load ( std::istream &  input)
virtual

parse from stream

Parameters
input[in] input stream

Implements DOMParser.

◆ save() [1/2]

void save ( const std::string &  filename)
virtual

save DOM structure to file

Parameters
filename[in] filename

Implements DOMParser.

◆ save() [2/2]

void save ( std::ostream &  input)
virtual

save DOM structure to stream

Parameters
input

Implements DOMParser.

◆ setDebug()

void setDebug ( bool  debug)
inlinevirtual

Enable/disable debugging to the debug Log.

Parameters
debug[in] true to enable debug output.

Implements DOMParser.


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