Class for parsing objects like "Circle(1.0)" or "Edge(1,2)" from a string. More...
#include <stringFunc.hh>


Public Member Functions | |
| Sequence< F > & | data () |
| Returns the data. | |
| std::string & | name () |
| Returns the name of the object. | |
| bool | parse (const std::string s) |
| Parser from a string. | |
| ParseObjectFromString (const char *name, const F data) | |
| Constructor with default name and default first data entry. | |
| ParseObjectFromString (const char *name, const F data1, const F data2, const F data3) | |
| Constructor with default name and default first three data entries. | |
| ParseObjectFromString (const char *name, const F data1, const F data2) | |
| Constructor with default name and default first two data entries. | |
| ParseObjectFromString (const char *name="", const Sequence< F > data=Sequence< F >()) | |
| Constructor with default name and default data. | |
Protected Member Functions | |
| std::ostream & | info (std::ostream &os) const |
| Returns information in an output stream. | |
Private Attributes | |
| Sequence< F > | data_ |
| Data of the object. | |
| std::string | name_ |
| Name of the object. | |
Class for parsing objects like "Circle(1.0)" or "Edge(1,2)" from a string.
Definition at line 99 of file stringFunc.hh.
| concepts::ParseObjectFromString< F >::ParseObjectFromString | ( | const char * | name = "", |
| const Sequence< F > | data = Sequence<F>() |
||
| ) | [inline] |
Constructor with default name and default data.
Definition at line 102 of file stringFunc.hh.
| concepts::ParseObjectFromString< F >::ParseObjectFromString | ( | const char * | name, |
| const F | data | ||
| ) | [inline] |
Constructor with default name and default first data entry.
Definition at line 106 of file stringFunc.hh.

| concepts::ParseObjectFromString< F >::ParseObjectFromString | ( | const char * | name, |
| const F | data1, | ||
| const F | data2 | ||
| ) | [inline] |
Constructor with default name and default first two data entries.
Definition at line 109 of file stringFunc.hh.
| concepts::ParseObjectFromString< F >::ParseObjectFromString | ( | const char * | name, |
| const F | data1, | ||
| const F | data2, | ||
| const F | data3 | ||
| ) | [inline] |
Constructor with default name and default first three data entries.
Definition at line 112 of file stringFunc.hh.
| Sequence<F>& concepts::ParseObjectFromString< F >::data | ( | ) | [inline] |
Returns the data.
Definition at line 123 of file stringFunc.hh.
| std::ostream & concepts::ParseObjectFromString< F >::info | ( | std::ostream & | os | ) | const [protected, virtual] |
Returns information in an output stream.
Reimplemented from concepts::OutputOperator.
Definition at line 157 of file stringFunc.hh.
| std::string& concepts::ParseObjectFromString< F >::name | ( | ) | [inline] |
Returns the name of the object.
Definition at line 121 of file stringFunc.hh.
| bool concepts::ParseObjectFromString< F >::parse | ( | const std::string | s | ) |
Parser from a string.
Definition at line 137 of file stringFunc.hh.

Sequence<F> concepts::ParseObjectFromString< F >::data_ [private] |
Data of the object.
Definition at line 133 of file stringFunc.hh.
std::string concepts::ParseObjectFromString< F >::name_ [private] |
Name of the object.
Definition at line 131 of file stringFunc.hh.