hpp::manipulation::srdf::HandleFactory< HandleType > Class Template Reference

Build an object of type HandleType. More...

#include <hpp/manipulation/srdf/factories/handle.hh>

Inheritance diagram for hpp::manipulation::srdf::HandleFactory< HandleType >:
[legend]
Collaboration diagram for hpp::manipulation::srdf::HandleFactory< HandleType >:
[legend]

Public Types

typedef boost::shared_ptr< HandleType > HandleTypePtr_t
 
- Public Types inherited from hpp::manipulation::parser::ObjectFactory
typedef std::list< ObjectFactory * > ObjectFactoryList
 

Public Member Functions

 HandleFactory (ObjectFactory *parent, const XMLElement *element)
 
virtual void finishTags ()
 Called when all the child tags have been processed. More...
 
HandleTypePtr_t handle () const
 
- 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)
 Set the name. More...
 
void name (const char *n)
 See name(const std::string&) More...
 
template<typename T >
T * as ()
 Cast this class to any child class. More...
 
virtual bool init ()
 Called when the object is created. More...
 
void setAttribute (const XMLAttribute *attr)
 Called for each attribute. More...
 
virtual void addTextChild (const XMLText *text)
 Add Text child. More...
 
virtual bool finishAttributes ()
 Called when all the attributes have been processed. More...
 
virtual void finishFile ()
 Called when parsing is finished. More...
 
std::string tagName () const
 Return tag name of the element is any. More...
 
std::string name () const
 Return the content of the attribute name, or an empty string. More...
 
bool hasAttribute (const std::string &attr) const
 Check if an attribute was set. More...
 
std::string getAttribute (const std::string &attr) const
 Return a given attributes. More...
 
ObjectFactoryList getChildrenOfType (std::string type)
 Get a list of ObjectFactory whose tag name is type. More...
 
bool getChildOfType (std::string type, ObjectFactory *&o)
 Get the ObjectFactory whose tag name is type. More...
 

Protected Attributes

HandleTypePtr_t handle_
 
Transform3f localPosition_
 The element required to build the handle. More...
 
std::string linkName_
 

Additional Inherited Members

- 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

template<typename HandleType>
class hpp::manipulation::srdf::HandleFactory< HandleType >

Build an object of type HandleType.

Template Parameters
HandleTypemust be one of hpp::manipulation::Handle and hpp::manipulation::AxialHandle.

Member Typedef Documentation

◆ HandleTypePtr_t

template<typename HandleType >
typedef boost::shared_ptr<HandleType> hpp::manipulation::srdf::HandleFactory< HandleType >::HandleTypePtr_t

Constructor & Destructor Documentation

◆ HandleFactory()

Member Function Documentation

◆ finishTags()

template<typename HandleType >
virtual void hpp::manipulation::srdf::HandleFactory< HandleType >::finishTags ( )
virtual

Called when all the child tags have been processed.

Reimplemented from hpp::manipulation::parser::ObjectFactory.

Referenced by hpp::manipulation::srdf::HandleFactory< HandleType >::HandleFactory().

◆ handle()

template<typename HandleType >
HandleTypePtr_t hpp::manipulation::srdf::HandleFactory< HandleType >::handle ( ) const

Member Data Documentation

◆ handle_

template<typename HandleType >
HandleTypePtr_t hpp::manipulation::srdf::HandleFactory< HandleType >::handle_
protected

◆ linkName_

template<typename HandleType >
std::string hpp::manipulation::srdf::HandleFactory< HandleType >::linkName_
protected

◆ localPosition_

template<typename HandleType >
Transform3f hpp::manipulation::srdf::HandleFactory< HandleType >::localPosition_
protected

The element required to build the handle.