#include <ConfigFile.h>
Public Member Functions | |
Value () | |
Default constructor. | |
Value (const char *v) | |
Constructor. | |
Value (int n) | |
Constructor. | |
operator int () const | |
Converts value into an integer. | |
operator double () const | |
Converts value into a double precision number. | |
operator string () const | |
Converts value into a string. | |
Private Attributes | |
string | theValue |
Friends | |
istream & | operator>> (istream &in, Value &v) |
Input operator. |
Allows universal handling of parameters with different data types. Usually an instance of this class is returned by ConfigFile::getValue() function.
Definition at line 37 of file ConfigFile.h.
|
Default constructor.
Definition at line 41 of file ConfigFile.h. |
|
Constructor.
Definition at line 46 of file ConfigFile.h. |
|
Constructor.
Definition at line 51 of file ConfigFile.h. References theValue. |
|
Converts value into a double precision number.
Definition at line 66 of file ConfigFile.h. References theValue. |
|
Converts value into an integer.
Definition at line 61 of file ConfigFile.h. References theValue. |
|
Converts value into a string.
Definition at line 71 of file ConfigFile.h. References theValue. |
|
Input operator.
Definition at line 73 of file ConfigFile.h. |
|
Definition at line 79 of file ConfigFile.h. Referenced by operator double(), operator int(), operator string(), and Value(). |