hpp-util  4.9.0
Debugging tools for the HPP project.
hpp::util::parser Namespace Reference

Classes

class  IgnoreTagFactory
 
class  ObjectFactory
 Class that catch XML Parser events for a specific tag and build the corresponding Object. More...
 
class  Parser
 Parse an XML document. More...
 
class  SequenceFactory
 Factory parsing sequence of values. More...
 

Typedefs

typedef TiXmlElement XMLElement
 
typedef TiXmlDocument XMLDocument
 
typedef TiXmlDeclaration XMLDeclaration
 
typedef TiXmlAttribute XMLAttribute
 
typedef TiXmlNode XMLNode
 
typedef TiXmlText XMLText
 
typedef TiXmlComment XMLComment
 
typedef TiXmlPrinter XMLPrinter
 

Functions

template<typename T >
ObjectFactorycreate (ObjectFactory *parent=NULL, const XMLElement *element=NULL)
 
std::ostream & operator<< (std::ostream &, const ObjectFactory &)
 
std::ostream & operator<< (std::ostream &, const Parser &)
 

Typedef Documentation

◆ XMLAttribute

typedef TiXmlAttribute hpp::util::parser::XMLAttribute

◆ XMLComment

typedef TiXmlComment hpp::util::parser::XMLComment

◆ XMLDeclaration

typedef TiXmlDeclaration hpp::util::parser::XMLDeclaration

◆ XMLDocument

typedef TiXmlDocument hpp::util::parser::XMLDocument

◆ XMLElement

typedef TiXmlElement hpp::util::parser::XMLElement

◆ XMLNode

typedef TiXmlNode hpp::util::parser::XMLNode

◆ XMLPrinter

typedef TiXmlPrinter hpp::util::parser::XMLPrinter

◆ XMLText

typedef TiXmlText hpp::util::parser::XMLText

Function Documentation

◆ create()

template<typename T >
ObjectFactory* hpp::util::parser::create ( ObjectFactory parent = NULL,
const XMLElement element = NULL 
)

To add a ObjectFactory to the Parser, use: Parser::addObjectFactory (TagName, create <ObjectFactory>)

◆ operator<<() [1/2]

std::ostream & hpp::util::parser::operator<< ( std::ostream &  os,
const ObjectFactory o 
)

◆ operator<<() [2/2]

std::ostream & hpp::util::parser::operator<< ( std::ostream &  os,
const Parser p 
)