/Users/brown170/Projects/Current/coral_msu_repo/trunk/src/coralutils/cheezyparser.h File Reference

#include <string>
#include <sstream>
#include <iostream>
#include <vector>
#include <typeinfo>
#include <map>
#include "parametermap.h"
#include "any.h"
#include "convert.h"

Include dependency graph for cheezyparser.h:

This graph shows which files directly or indirectly include this file:

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 Documentation

#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.


Function Documentation

string get_prepped_line ( istream &  s,
const string &  comment_string = COMMENT_STRING 
)

Readies a line for parsing.

Definition at line 7 of file cheezyparser.cc.

string get_type_string ( const type_info &  tid  ) 

Definition at line 25 of file cheezyparser.cc.

template<typename ValueType >
ostream& operator<< ( ostream &  o,
vector< vector< ValueType > >  v 
) [inline]

Templated output for stl vector of vectors.

Definition at line 91 of file cheezyparser.h.

template<typename ValueType >
ostream& operator<< ( ostream &  o,
vector< ValueType >  v 
) [inline]

Templated output for stl vectors.

Definition at line 66 of file cheezyparser.h.

ostream& operator<< ( ostream &  o,
vector< string >  v 
)

Specific input for vectors of strings.

Definition at line 86 of file cheezyparser.cc.

template<typename ValueType >
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.

template<typename ValueType >
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 
)

Specific output for vectors of strings.

Definition at line 74 of file cheezyparser.cc.

template<typename Target >
Target simple_lexical_cast ( const string &  argu  )  [inline]

Wrapper around stringstream to allow "casting" of strings.

Definition at line 29 of file cheezyparser.h.

template<typename Target >
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.


Generated on Fri Feb 6 13:30:16 2009 for CorAL by  doxygen 1.5.8