Factory parsing sequence of values. More...
#include <hpp/util/factories/sequence.hh>
Public Types | |
typedef std::vector< ValueType > | OutType |
Public Member Functions | |
SequenceFactory (ObjectFactory *parent, const XMLElement *element, const unsigned int nbValue=0) | |
virtual void | addTextChild (const XMLText *text) |
Add Text child. | |
const OutType & | values () const |
SequenceFactory (const std::string &tagName, ObjectFactory *parent=NULL) | |
void | values (const OutType &v) |
Protected Member Functions | |
virtual void | impl_write (XMLElement *element) const |
Factory parsing sequence of values.
ValueType | one of (bool, int, unsigned int, double, float) |
A std::vector is built from a sequence of values separeted by white spaces.
typedef std::vector<ValueType> hpp::util::parser::SequenceFactory< ValueType >::OutType |
hpp::util::parser::SequenceFactory< ValueType >::SequenceFactory | ( | ObjectFactory * | parent, |
const XMLElement * | element, | ||
const unsigned int | nbValue = 0 |
||
) | [inline] |
hpp::util::parser::SequenceFactory< ValueType >::SequenceFactory | ( | const std::string & | tagName, |
ObjectFactory * | parent = NULL |
||
) | [inline] |
void hpp::util::parser::SequenceFactory< ValueType >::addTextChild | ( | const XMLText * | text | ) | [virtual] |
void hpp::util::parser::SequenceFactory< ValueType >::impl_write | ( | XMLElement * | element | ) | const [protected, virtual] |
Reimplemented from hpp::util::parser::ObjectFactory.
const OutType& hpp::util::parser::SequenceFactory< ValueType >::values | ( | ) | const [inline] |
void hpp::util::parser::SequenceFactory< ValueType >::values | ( | const OutType & | v | ) | [inline] |