Parse an XML document.
More...
#include <hpp/manipulation/parser/parser.hh>
List of all members.
Detailed Description
Parse an XML document.
This class uses the tinyXML library and derived classes of ObjectFactory to build object from an XML document. To extend its capabilities, see ObjectFactory.
Member Typedef Documentation
Constructor & Destructor Documentation
hpp::manipulation::parser::Parser::Parser |
( |
bool |
fillWithDefaultFactories = true , |
|
|
FactoryType |
defaultFactory = create< ObjectFactory > |
|
) |
| |
Constructor.
- Parameters:
-
fillWithDefaultFactories | Set to true if you want to insert the default factories. If set to false, the created instance will have no factories. |
defaultFactory | The factory used when a tag is not know. |
hpp::manipulation::parser::Parser::~Parser |
( |
| ) |
|
Member Function Documentation
void hpp::manipulation::parser::Parser::addObjectFactory |
( |
const std::string & |
tagname, |
|
|
FactoryType |
factory |
|
) |
| |
void hpp::manipulation::parser::Parser::parse |
( |
const std::string & |
semanticResourceName, |
|
|
DevicePtr_t |
robot |
|
) |
| |
void hpp::manipulation::parser::Parser::parseFile |
( |
const char * |
filename | ) |
|
void hpp::manipulation::parser::Parser::prefix |
( |
const std::string & |
prefix | ) |
[inline] |
Set the prefix of all joints.
Friends And Related Function Documentation
std::ostream& operator<< |
( |
std::ostream & |
, |
|
|
const Parser & |
|
|
) |
| [friend] |