RobWorkProject
23.9.11-
|
interface for parsing documents in a DOM fasion. More...
#include <DOMParser.hpp>
Inherited by BoostXMLParser.
Classes | |
class | Factory |
a factory for DOMParsers. This factory defines an extension point for DOMParsers. Typically this is for parsing xml files, however, anything that parses from some stream or file into a DOM structure can be a DOMParser. More... | |
Public Types | |
typedef rw::core::Ptr< DOMParser > | Ptr |
smart pointer type | |
Public Member Functions | |
virtual | ~DOMParser () |
destructor | |
virtual void | load (const std::string &filename)=0 |
parse from file More... | |
virtual void | load (std::istream &input)=0 |
parse from stream More... | |
virtual void | save (const std::string &filename)=0 |
save DOM structure to file More... | |
virtual void | save (std::ostream &input)=0 |
save DOM structure to stream More... | |
virtual void | setSchema (const std::string &filename) |
specify the schema file More... | |
virtual DOMElem::Ptr | getRootElement ()=0 |
get the top/root element in the DOM structure More... | |
virtual void | setDebug (bool debug)=0 |
Enable/disable debugging to the debug Log. More... | |
Static Public Member Functions | |
static rw::core::Ptr< DOMParser > | make () |
make an instance of the default DOM parser More... | |
Protected Member Functions | |
DOMParser () | |
constructor | |
Protected Attributes | |
std::string | _schemaFile |
Filename of schema. | |
interface for parsing documents in a DOM fasion.
The factory method in the DOM parser enables extensions to be added by the user through plugins.
|
pure virtual |
get the top/root element in the DOM structure
Implemented in BoostXMLParser.
|
pure virtual |
|
pure virtual |
|
static |
make an instance of the default DOM parser
|
pure virtual |
|
pure virtual |
|
pure virtual |
Enable/disable debugging to the debug Log.
debug | [in] true to enable debug output. |
Implemented in BoostXMLParser.
|
inlinevirtual |
specify the schema file
filename |