hpp-manipulation-urdf 7.0.0
Implementation of a parser for hpp-manipulation.
Loading...
Searching...
No Matches
hpp::manipulation::parser::RootFactory Class Reference

Represent a XML document. More...

#include <hpp/manipulation/parser/parser.hh>

Inheritance diagram for hpp::manipulation::parser::RootFactory:
Collaboration diagram for hpp::manipulation::parser::RootFactory:

Public Member Functions

virtual ~RootFactory ()
 RootFactory (const DevicePtr_t())
DevicePtr_t device () const
std::string prependPrefix (const std::string &in) const
std::string removePrefix (const std::string &in) const
void prefix (const std::string &prefix)
Public Member Functions inherited from hpp::manipulation::parser::ObjectFactory
 ObjectFactory (ObjectFactory *parent=NULL, const XMLElement *element=NULL)
virtual ~ObjectFactory ()
void name (const std::string &n)
void name (const char *n)
 See name(const std::string&)
template<typename T>
T * as ()
 Cast this class to any child class.
virtual bool init ()
void setAttribute (const XMLAttribute *attr)
virtual void addTextChild (const XMLText *text)
 Add Text child.
virtual bool finishAttributes ()
virtual void finishTags ()
 Called when all the child tags have been processed.
virtual void finishFile ()
 Called when parsing is finished.
std::string tagName () const
std::string name () const
bool hasAttribute (const std::string &attr) const
 Check if an attribute was set.
std::string getAttribute (const std::string &attr) const
 Return a given attributes.
ObjectFactoryList getChildrenOfType (std::string type)
 Get a list of ObjectFactory whose tag name is type.
bool getChildOfType (std::string type, ObjectFactory *&o)

Additional Inherited Members

Public Types inherited from hpp::manipulation::parser::ObjectFactory
typedef std::vector< ObjectFactory * > ObjectFactoryList
Protected Member Functions inherited from hpp::manipulation::parser::ObjectFactory
 ObjectFactory (RootFactory *root)
ObjectFactoryparent ()
RootFactoryroot ()
bool hasParent () const
const XMLElementXMLelement ()
virtual void impl_setAttribute (const XMLAttribute *attr)
void addChild (ObjectFactory *child)
virtual std::ostream & print (std::ostream &os) const

Detailed Description

Represent a XML document.

Constructor & Destructor Documentation

◆ ~RootFactory()

virtual hpp::manipulation::parser::RootFactory::~RootFactory()
inlinevirtual

◆ RootFactory()

hpp::manipulation::parser::RootFactory::RootFactory(const DevicePtr_t())

Member Function Documentation

◆ device()

DevicePtr_t hpp::manipulation::parser::RootFactory::device()const

◆ prefix()

void hpp::manipulation::parser::RootFactory::prefix(const std::string &prefix)
inline

◆ prependPrefix()

std::string hpp::manipulation::parser::RootFactory::prependPrefix(const std::string &in)const
inline

◆ removePrefix()

std::string hpp::manipulation::parser::RootFactory::removePrefix(const std::string &in)const
inline

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