#include <string>
#include <sstream>
#include <iostream>
#include <vector>
#include <typeinfo>
#include <map>
#include "parametermap.h"
#include "any.h"
#include "convert.h"
Go to the source code of this file.
Classes | |
class | CParserObject |
class to simplify parsing More... | |
Defines | |
#define | COMMENT_STRING "#" |
#define | BEGIN_BLOCK "{" |
#define | END_BLOCK "}" |
Functions | |
string | get_prepped_line (istream &s, const string &comment_string=COMMENT_STRING) |
Readies a line for parsing. | |
template<typename Target > | |
Target | simple_lexical_cast (const string &argu) |
Wrapper around stringstream to allow "casting" of strings. | |
template<typename Target > | |
vector< Target > | simple_vector_lexical_cast (const string &argu) |
Wrapper around stringstream to allow "casting" of vectors of strings. | |
string | get_type_string (const type_info &tid) |
boost::any | stoany (const string &type, const string &instring) |
istream & | operator>> (istream &i, vector< string > V) |
Specific output for vectors of strings. | |
ostream & | operator<< (ostream &o, vector< string > v) |
Specific input for vectors of strings. | |
template<typename ValueType > | |
ostream & | operator<< (ostream &o, vector< ValueType > v) |
Templated output for stl vectors. | |
template<typename ValueType > | |
istream & | operator>> (istream &i, vector< ValueType > V) |
Templated input for stl vectors. Needs to know a little bit about the syntax. | |
template<typename ValueType > | |
ostream & | operator<< (ostream &o, vector< vector< ValueType > > v) |
Templated output for stl vector of vectors. | |
template<typename ValueType > | |
istream & | operator>> (istream &i, vector< vector< ValueType > > V) |
Templated input for stl vector of vectors. Needs to know a little bit about the syntax. |
#define BEGIN_BLOCK "{" |
Definition at line 15 of file cheezyparser.h.
#define COMMENT_STRING "#" |
Definition at line 14 of file cheezyparser.h.
#define END_BLOCK "}" |
Definition at line 16 of file cheezyparser.h.
string get_prepped_line | ( | istream & | s, | |
const string & | comment_string = COMMENT_STRING | |||
) |
string get_type_string | ( | const type_info & | tid | ) |
Definition at line 25 of file cheezyparser.cc.
ostream& operator<< | ( | ostream & | o, | |
vector< vector< ValueType > > | v | |||
) | [inline] |
ostream& operator<< | ( | ostream & | o, | |
vector< ValueType > | v | |||
) | [inline] |
ostream& operator<< | ( | ostream & | o, | |
vector< string > | v | |||
) |
istream& operator>> | ( | istream & | i, | |
vector< vector< ValueType > > | V | |||
) | [inline] |
Templated input for stl vector of vectors. Needs to know a little bit about the syntax.
Definition at line 105 of file cheezyparser.h.
istream& operator>> | ( | istream & | i, | |
vector< ValueType > | V | |||
) | [inline] |
Templated input for stl vectors. Needs to know a little bit about the syntax.
Definition at line 77 of file cheezyparser.h.
istream& operator>> | ( | istream & | i, | |
vector< string > | V | |||
) |
Target simple_lexical_cast | ( | const string & | argu | ) | [inline] |
Wrapper around stringstream to allow "casting" of strings.
Definition at line 29 of file cheezyparser.h.
vector< Target > simple_vector_lexical_cast | ( | const string & | argu | ) | [inline] |
Wrapper around stringstream to allow "casting" of vectors of strings.
Definition at line 39 of file cheezyparser.h.
boost::any stoany | ( | const string & | type, | |
const string & | instring | |||
) |
Definition at line 45 of file cheezyparser.cc.