Main Page | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members | Related Pages

configurationdatabase.cpp File Reference

Include dependency graph for configurationdatabase.cpp:

Go to the source code of this file.

Functions

ostream & operator<< (ostream &out, const ConfigurationDatabase &database)
istream & operator>> (istream &in, ConfigurationDatabase &database)


Function Documentation

ostream& operator<< ostream &  out,
const ConfigurationDatabase database
 

Writes out a configuration database.

Parameters:
out is the output source, in the format of:
[headers]
key value
database holds the configurations to be written.
Returns:
the output source.

Definition at line 167 of file configurationdatabase.cpp.

References ConfigurationDatabase::BEGIN_COMMENT, ConfigurationDatabase::BEGIN_HEADER, ConfigurationDatabase::END_HEADER, ConfigurationDatabase::m_comments, and ConfigurationDatabase::m_configurations.

istream& operator>> istream &  in,
ConfigurationDatabase database
 

Reads in a configuration database from a stream.

Parameters:
in is the input source, in the format of:
#comments
[headers]
key value
database is where to store the configurations.
Returns:
the input source.
Exceptions:
string if in the stream the header is missing for a key-value pair or if a key is missing it's value.

Definition at line 125 of file configurationdatabase.cpp.

References ConfigurationDatabase::BEGIN_COMMENT, ConfigurationDatabase::BEGIN_HEADER, ConfigurationDatabase::m_comments, and ConfigurationDatabase::m_configurations.


Generated on Tue Mar 28 23:28:17 2006 for ClusterSim by  doxygen 1.4.4