#ifndef H_Input #define H_Input #include #include #include #include "ValType.h" using namespace std; namespace phSolver{ class Input { public: Input(const string &, const string &default_fname = ""); ~Input(); // return the entire input map map InputMap() const; // returns the desired string // const string &GetValue(const string &) const; ValType GetValue(const string &) const; // echo the entire input map void EchoInputMap(const ostream &ofile); const char* GetUserFileName(); const char* GetDefaultFileName(); private: void trim_string(string *str); void get_input_lines(vector *, ifstream& ); void build_map(map *, vector *); map *input_map; map *default_map; vector *input_text; vector *default_text; string userConfFileName; string defaultConfFileName; }; } //end phSolver namespace #endif