The internal representation for a Defaults_Text object.
More...
|
std::map< std::string,
std::string > | _map |
|
The internal representation for a Defaults_Text object.
Definition at line 106 of file Defaults_Text.cc.
hitfit::Defaults_Textrep::Defaults_Textrep |
( |
string |
file | ) |
|
Constructor, construct a Defaults_Textrep instance from an ASCII text-file and command line arguments.
- Parameters
-
file | The name of the input ASCII file to read. See the header file for a description of the format for this and the argument list. Pass an empty string to skip reading a file. |
Definition at line 179 of file Defaults_Text.cc.
hitfit::Defaults_Textrep::Defaults_Textrep |
( |
string |
file, |
|
|
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
Constructor, construct a Defaults_Textrep instance from an ASCII text-file.
- Parameters
-
file | The name of the input ASCII file to read. See the header file for a description of the format for this and the argument list. Pass an empty string to skip reading a file. |
argc | The length of the argument list. |
argv | The argument list. |
Definition at line 194 of file Defaults_Text.cc.
void hitfit::Defaults_Textrep::doline |
( |
string |
l | ) |
|
|
private |
Helper function to process a line defining a single parameter.
- Parameters
-
Definition at line 304 of file Defaults_Text.cc.
string hitfit::Defaults_Textrep::get_val |
( |
string |
name | ) |
const |
Look up parameter name and return its value.
- Parameters
-
name | The name of the parameter. |
- Return:
- The value of the parameter in C++ string format.
Definition at line 277 of file Defaults_Text.cc.
void hitfit::Defaults_Textrep::process_args |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
|
private |
Look for additional parameter settings in the argument list argc and argv and add the content to data.
- Parameters
-
argc | The length of the argument list. |
argv | The argument list. |
Definition at line 239 of file Defaults_Text.cc.
void hitfit::Defaults_Textrep::read_file |
( |
string |
file | ) |
|
|
private |
Read parameters from ASCII text file file and add the content to data.
- Parameters
-
file | The ASCII text file to read. |
Definition at line 212 of file Defaults_Text.cc.
std::map<std::string,std::string> hitfit::Defaults_Textrep::_map |
The data, maps from parameter names to values (which are stored as strings)
Definition at line 139 of file Defaults_Text.cc.