Public Member Functions | Protected Member Functions | Protected Attributes
mhf::ObjectModelParser Class Reference

#include <ObjectModelParser.h>

List of all members.

Public Member Functions

std::string getErrorMessage () const
 ObjectModelParser (const std::string &filename)
bool parse (KnowledgeDatabase &obj_models)
virtual ~ObjectModelParser ()

Protected Member Functions

bool getAttributeValue (const TiXmlElement *elem, std::string att_name, std::string &att_value, std::stringstream &error)
bool getAttributeValue (const TiXmlElement *elem, std::string att_name, double &att_value, std::stringstream &error)
std::string getPropertyValue (const TiXmlElement *elem, std::string prop_name, double &value, std::stringstream &error, bool optional=false)
bool getStateEstimatorParameter (const TiXmlElement *elem, const std::string &param_name, double &value)
bool hasAttributeValue (const TiXmlElement *elem, std::string att_name, std::string att_value)
pbl::PDFparsePDF (const TiXmlElement *elem, std::stringstream &error)
bool parseStateEstimator (ClassModel *obj_model, const TiXmlElement *elem, std::stringstream &error)

Protected Attributes

std::string filename_
pluginlib::ClassLoader
< IStateEstimator > * 
object_model_loader_
std::stringstream parse_errors_

Detailed Description

Definition at line 25 of file ObjectModelParser.h.


Constructor & Destructor Documentation

mhf::ObjectModelParser::ObjectModelParser ( const std::string &  filename)

Definition at line 19 of file ObjectModelParser.cpp.

Definition at line 24 of file ObjectModelParser.cpp.


Member Function Documentation

bool mhf::ObjectModelParser::getAttributeValue ( const TiXmlElement *  elem,
std::string  att_name,
std::string &  att_value,
std::stringstream &  error 
) [protected]
bool mhf::ObjectModelParser::getAttributeValue ( const TiXmlElement *  elem,
std::string  att_name,
double &  att_value,
std::stringstream &  error 
) [protected]

Definition at line 29 of file ObjectModelParser.cpp.

string mhf::ObjectModelParser::getPropertyValue ( const TiXmlElement *  elem,
std::string  prop_name,
double &  value,
std::stringstream &  error,
bool  optional = false 
) [protected]

Definition at line 33 of file ObjectModelParser.cpp.

bool mhf::ObjectModelParser::getStateEstimatorParameter ( const TiXmlElement *  elem,
const std::string &  param_name,
double &  value 
) [protected]

Definition at line 211 of file ObjectModelParser.cpp.

bool mhf::ObjectModelParser::hasAttributeValue ( const TiXmlElement *  elem,
std::string  att_name,
std::string  att_value 
) [protected]

Definition at line 70 of file ObjectModelParser.cpp.

Definition at line 226 of file ObjectModelParser.cpp.

pbl::PDF * mhf::ObjectModelParser::parsePDF ( const TiXmlElement *  elem,
std::stringstream &  error 
) [protected]

Definition at line 80 of file ObjectModelParser.cpp.

bool mhf::ObjectModelParser::parseStateEstimator ( ClassModel obj_model,
const TiXmlElement *  elem,
std::stringstream &  error 
) [protected]

Definition at line 104 of file ObjectModelParser.cpp.


Member Data Documentation

std::string mhf::ObjectModelParser::filename_ [protected]

Definition at line 39 of file ObjectModelParser.h.

Definition at line 43 of file ObjectModelParser.h.

std::stringstream mhf::ObjectModelParser::parse_errors_ [protected]

Definition at line 41 of file ObjectModelParser.h.


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


wire_core
Author(s): Sjoerd van den Dries, Jos Elfring
autogenerated on Tue Jan 7 2014 11:43:19