hpp-manipulation-urdf: hpp::manipulation::parser::SequenceFactory< ValueType > Class Template Reference

hpp-manipulation-urdf 9.0.2 Implementation of a parser for hpp-manipulation.

Loading...
Searching...
No Matches
Public Types | Public Member Functions | List of all members
hpp::manipulation::parser::SequenceFactory< ValueType > Class Template Reference
Factories

Factory parsing sequence of values. More...

`#include <hpp/manipulation/parser/factories/sequence.hh>`

Inheritance diagram for hpp::manipulation::parser::SequenceFactory< ValueType >:
[legend]
Collaboration diagram for hpp::manipulation::parser::SequenceFactory< ValueType >:
[legend]

## Public Types
typedef std::vector< ValueType > | OutType
Public Types inherited from hpp::manipulation::parser::ObjectFactory
typedef std::vector< ObjectFactory * > | ObjectFactoryList

## Public Member Functions
| SequenceFactory (ObjectFactory *parent, const XMLElement *element, const int nbValue=-1)
virtual void | addTextChild (const XMLText *text)
| Add Text child.
const OutType & | values () 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)
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 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
Protected Member Functions inherited from hpp::manipulation::parser::ObjectFactory
| ObjectFactory (RootFactory *root)
ObjectFactory * | parent ()
RootFactory * | root ()
bool | hasParent () const
const XMLElement * | XMLelement ()
virtual void | impl_setAttribute (const XMLAttribute *attr)
void | addChild (ObjectFactory *child)
virtual std::ostream & | print (std::ostream &os) const

## Detailed Description

template<typename ValueType>
class hpp::manipulation::parser::SequenceFactory< ValueType >

Factory parsing sequence of values.

Template Parameters

  ValueType | one of (bool, int, unsigned int, double, float)

A std::vector is built from a sequence of values separeted by white spaces.

## Member Typedef Documentation

## ◆ OutType

template<typename ValueType >

typedef std::vector<ValueType> hpp::manipulation::parser::SequenceFactory< ValueType >::OutType

## Constructor & Destructor Documentation

## ◆ SequenceFactory()

template<typename ValueType >

hpp::manipulation::parser::SequenceFactory< ValueType >::SequenceFactory | ( | ObjectFactory * | parent,
|  | const XMLElement * | element,
|  | const int | nbValue = -1 )
| inline

## Member Function Documentation

## ◆ addTextChild()

template<typename ValueType >

virtual void hpp::manipulation::parser::SequenceFactory< ValueType >::addTextChild | ( | const XMLText * | text | ) |
| virtual

Add Text child.

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

## ◆ values()

template<typename ValueType >

const OutType & hpp::manipulation::parser::SequenceFactory< ValueType >::values | ( |  | ) | const
| inline

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

- include/hpp/manipulation/parser/factories/sequence.hh