31 #include "ParFilename.h" 43 friend ostream& operator << ( ostream& os,
ParFile& parFile ) {
51 friend ostream& operator << ( ostream& os,
ParFile* parFile ) {
78 ParFile(
int argc,
char** argv,
const char* file=NULL )
95 void init_ParFile(
int argc,
char** argv,
const char* file=NULL )
107 void print( ostream& os )
const;
148 void pgetstr(
const char* name,
char result[],
size_t size )
160 void pget(
const char* name,
bool& result )
const throw (
ParFileException );
163 void pget(
const char* name,
double& result )
const 167 void pget(
const char* name,
int& result )
const throw (
ParFileException );
170 void pget(
const char* name,
long& result )
const throw (
ParFileException );
173 void pget(
const char* name,
char result[],
size_t )
const 177 void pget(
const char* name,
string& rult )
const throw (
ParFileException );
184 int traverse(
int (*fct)(
Par* ) )
const;
186 static int is_blank(
const char* str );
188 static int is_comment(
const char* str,
char delimit=
'#' );
193 bool return_on_error;
201 void get_mode_of_parameter_file(
int argc,
char** argv )
204 bool is_duplicate_cmdline_args(
int argc,
char** argv )
207 bool is_parlist(
string& cmdline_name,
string& cmdline_value );
209 void querry_user(
Par* par,
char* str );
214 void read_ParFile(
int argc,
char** argv,
const char* file )
219 void set_return_on_error(
const string& str );
224 Par* search_name(
const char* str )
const
Definition: ParFileException.h:33
void print(ostream &os) const
Definition: ParFile.cc:370
string get_filename()
Definition: ParFile.h:85
ParFile()
Definition: ParFile.h:66
Definition: ParFilename.h:44