|
bool | parseBool (bool &def, const std::string &str) const |
|
| Parser () |
|
| Parser (const std::string &str) |
|
template<PropertyId p> |
PropertyType< p >::T | parse (typename PropertyType< p >::T def, std::string data) |
|
template<typename T > |
T | parse (const T &def, const std::string &field) const |
|
template<PropertyId p> |
PropertyType< p >::T | get (const typename PropertyType< p >::T &def=Default< typename PropertyType< p >::T >::def) const |
|
template<> |
std::string | get (const std::string &def) const |
|
template<> |
std::string | get (const std::string &def) const |
|
template<> |
int | parse (const int &def, const std::string &str) const |
|
| RecordParser () |
|
| RecordParser (const std::string &str) |
|
void | scan (const std::string &str) |
| Index a new record. More...
|
|
size_t | index (const std::string &str) const |
| Get the index of the field with the given name. More...
|
|
std::string | field (size_t idx) const |
| Return the field by its index. More...
|
|
std::string | name (size_t idx) const |
| Return the name of a field by its index. More...
|
|
std::string | lookup (size_t idx) const |
| Return the content of a field by its index. More...
|
|
std::string | lookup (const std::string &name) const |
| Return the content of a field by its name. More...
|
|
std::string | operator[] (size_t idx) const |
| Return the content of a field by its index. More...
|
|
std::string | operator[] (const std::string &name) const |
| Return the content of a field by its name. More...
|
|
const std::string & | record () const |
| Return the entire record. More...
|
|
std::string | record () |
| Return the entire record. More...
|
|
size_t | size () const |
| Return the number of fields in the record. More...
|
|