1 #ifndef _CONFREADER_HH_
2 #define _CONFREADER_HH_
20 * From a loaded configuration file, this function
21 * attempts to find the associated (int) value and if
22 * it is found, then it is stored in the variable
23 * pointed to by the pointer.
24 * @param _field: The field to find
25 * @param value: a pointer to the storage location
26 * @return: true if found, false if not found
28 bool field_int( string _field
, int *value
);
31 * From a loaded configuration file, this function
32 * attempts to find the associated (double) value and if
33 * it is found, then it is stored in the variable
34 * pointed to by the pointer.
35 * @param _field The field to find.
36 * @param value a pointer to the storage location
37 * @return true if the value is found, false otherwise
39 bool field_double( string _field
, double *value
);
42 * From a loaded configuration file, this function
43 * attempts to find the associated (double) value and if
44 * it is found, then it is stored in the variable
45 * pointed to by the pointer.
46 * @param _field The field to find.
47 * @param value a pointer to the storage location
48 * @return true if the value is found, false otherwise
50 bool field_string( string _field
, string
*value
);
52 ConfReader( string _filename
);