#include <stringFunc.hh>
Public Member Functions | |
| ParseObjectFromString (const char *name="", const Sequence< F > data=Sequence< F >()) | |
| Constructor with default name and default data. | |
| 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) | |
| Constructor with default name and default first two data entries. | |
| ParseObjectFromString (const char *name, const F data1, const F data2, const F data3) | |
| Constructor with default name and default first three data entries. | |
| std::string & | name () |
| Returns the name of the object. | |
| Sequence< F > & | data () |
| Returns the data. | |
| bool | parse (const std::string s) |
| Parser from a string. | |
Protected Member Functions | |
| std::ostream & | info (std::ostream &os) const |
| Returns information in an output stream. | |
Class for parsing objects like "Circle(1.0)" or "Edge(1,2)" from a string.
Definition at line 102 of file stringFunc.hh.
|
inline |
Constructor with default name and default data.
Definition at line 105 of file stringFunc.hh.
|
inline |
Constructor with default name and default first data entry.
Definition at line 109 of file stringFunc.hh.
|
inline |
Constructor with default name and default first two data entries.
Definition at line 112 of file stringFunc.hh.
|
inline |
Constructor with default name and default first three data entries.
Definition at line 115 of file stringFunc.hh.
|
inline |
Returns the data.
Definition at line 126 of file stringFunc.hh.
|
protectedvirtual |
Returns information in an output stream.
Reimplemented from concepts::OutputOperator.
Definition at line 160 of file stringFunc.hh.
|
inline |
Returns the name of the object.
Definition at line 124 of file stringFunc.hh.
| bool concepts::ParseObjectFromString< F >::parse | ( | const std::string | s | ) |
Parser from a string.
Definition at line 140 of file stringFunc.hh.