Definition at line 46 of file configurationdatabase.h.
Public Types | |
typedef map< string, KeyValuePair > | ConfigurationDatabaseType |
typedef vector< string > | Headers |
typedef vector< string > | Keys |
typedef map< string, string > | KeyValuePair |
Public Member Functions | |
void | addHeaderKeyValuePair (const string &header, const string &key, const string &value) |
void | addKeyValuePair (const string &header, const string &key, const string &value) |
ConfigurationDatabase (const string &filename) | |
ConfigurationDatabase () | |
double | doubleValue (const string &header, const string &key) const |
Headers | headers () const |
int | intValue (const string &header, const string &key) const |
Keys | keys (const string &header) const |
string | stringValue (const string &header, const string &key) const |
Private Attributes | |
map< int, string > | m_comments |
ConfigurationDatabaseType | m_configurations |
Static Private Attributes | |
static const char | BEGIN_COMMENT = '#' |
static const char | BEGIN_HEADER = '[' |
static const char | END_HEADER = ']' |
Friends | |
ostream & | operator<< (ostream &out, const ConfigurationDatabase &database) |
istream & | operator>> (istream &in, ConfigurationDatabase &database) |
|
Definition at line 58 of file configurationdatabase.h. |
|
Definition at line 62 of file configurationdatabase.h. |
|
Definition at line 60 of file configurationdatabase.h. |
|
Definition at line 53 of file configurationdatabase.h. |
|
A general constructor to build a configuration with. Definition at line 28 of file configurationdatabase.cpp. |
|
A single argument constructor.
Definition at line 32 of file configurationdatabase.cpp. |
|
This will add a new header, and new key-value pairs to the database.
Definition at line 112 of file configurationdatabase.cpp. References m_configurations. |
|
This will add a new key-value pair to the database.
Definition at line 117 of file configurationdatabase.cpp. References m_configurations. |
|
Gets the value that is matched with the key in the database.
Definition at line 57 of file configurationdatabase.cpp. References m_configurations. Referenced by createCluster(), nonInteractiveRun(), RadialDensityHistogram::RadialDensityHistogram(), RadialDistributionFunction::RadialDistributionFunction(), and selectSimulation(). |
|
Retrieves all the headers in the database.
Definition at line 85 of file configurationdatabase.cpp. References m_configurations. Referenced by nonInteractiveRun(). |
|
Gets the value that is matched with the key in the database.
Definition at line 43 of file configurationdatabase.cpp. References m_configurations. Referenced by createCluster(), KineticEnergyHistogram::KineticEnergyHistogram(), nonInteractiveRun(), PotentialEnergyHistogram::PotentialEnergyHistogram(), RadialDensityHistogram::RadialDensityHistogram(), RadialDistributionFunction::RadialDistributionFunction(), and selectSimulation(). |
|
Retrieves all the keys in the database for a specified header.
Definition at line 98 of file configurationdatabase.cpp. References m_configurations. |
|
Gets the value that is matched with the key in the database.
Definition at line 71 of file configurationdatabase.cpp. References m_configurations. Referenced by nonInteractiveRun(). |
|
Writes out a configuration database.
Definition at line 167 of file configurationdatabase.cpp. |
|
Reads in a configuration database from a stream.
Definition at line 125 of file configurationdatabase.cpp. |
|
Definition at line 155 of file configurationdatabase.h. Referenced by operator<<(), and operator>>(). |
|
Definition at line 157 of file configurationdatabase.h. Referenced by operator<<(), and operator>>(). |
|
Definition at line 159 of file configurationdatabase.h. Referenced by operator<<(). |
|
Definition at line 153 of file configurationdatabase.h. Referenced by operator<<(), and operator>>(). |
|
Definition at line 147 of file configurationdatabase.h. Referenced by addHeaderKeyValuePair(), addKeyValuePair(), doubleValue(), headers(), intValue(), keys(), operator<<(), operator>>(), and stringValue(). |