#include <ConfigFile.h>
|
| ConfigFile (const char *apFilename, bool output=false) |
|
virtual | ~ConfigFile () |
|
bool | isValid () |
|
bool | writeElement (std::string &arName, const char *apValue) |
|
bool | writeElement (std::string &arName, std::string &arValue) |
|
bool | writeElement (std::string &arName, double anValue) |
|
bool | writeElement (std::string &arName, float anValue) |
|
bool | writeElement (std::string &arName, int anValue) |
|
bool | writeElement (std::string &arName, unsigned int anValue) |
|
bool | writeElement (const char *apName, const char *apValue) |
|
bool | writeElement (const char *apName, std::string &arValue) |
|
bool | writeElement (const char *apName, double anValue) |
|
bool | writeElement (const char *apName, float anValue) |
|
bool | writeElement (const char *apName, int anValue) |
|
bool | writeElement (const char *apName, unsigned int anValue) |
|
bool | readElement (unsigned int *apReadValue) |
|
bool | readElement (int *apReadValue) |
|
bool | readElement (float *apReadValue) |
|
bool | readElement (double *apReadValue) |
|
bool | readElement (std::string *apReadValue) |
|
◆ ConfigFile()
ConfigFile::ConfigFile |
( |
const char * |
apFilename, |
|
|
bool |
output = false |
|
) |
| |
Opens a file for IO operations for reading/writing of simple elements
◆ ~ConfigFile()
ConfigFile::~ConfigFile |
( |
| ) |
|
|
virtual |
Automatically closes the file on destruction.
◆ isValid()
bool ConfigFile::isValid |
( |
| ) |
|
Tests if the file is open and there are remaining elements to read.
- Returns
- true if the file is open and not EOF.
◆ readElement() [1/5]
bool ConfigFile::readElement |
( |
double * |
apReadValue | ) |
|
◆ readElement() [2/5]
bool ConfigFile::readElement |
( |
float * |
apReadValue | ) |
|
◆ readElement() [3/5]
bool ConfigFile::readElement |
( |
int * |
apReadValue | ) |
|
◆ readElement() [4/5]
bool ConfigFile::readElement |
( |
std::string * |
apReadValue | ) |
|
◆ readElement() [5/5]
bool ConfigFile::readElement |
( |
unsigned int * |
apReadValue | ) |
|
◆ writeElement() [1/12]
bool ConfigFile::writeElement |
( |
const char * |
apName, |
|
|
const char * |
apValue |
|
) |
| |
◆ writeElement() [2/12]
bool ConfigFile::writeElement |
( |
const char * |
apName, |
|
|
double |
anValue |
|
) |
| |
◆ writeElement() [3/12]
bool ConfigFile::writeElement |
( |
const char * |
apName, |
|
|
float |
anValue |
|
) |
| |
◆ writeElement() [4/12]
bool ConfigFile::writeElement |
( |
const char * |
apName, |
|
|
int |
anValue |
|
) |
| |
◆ writeElement() [5/12]
bool ConfigFile::writeElement |
( |
const char * |
apName, |
|
|
std::string & |
arValue |
|
) |
| |
◆ writeElement() [6/12]
bool ConfigFile::writeElement |
( |
const char * |
apName, |
|
|
unsigned int |
anValue |
|
) |
| |
◆ writeElement() [7/12]
bool ConfigFile::writeElement |
( |
std::string & |
arName, |
|
|
const char * |
apValue |
|
) |
| |
◆ writeElement() [8/12]
bool ConfigFile::writeElement |
( |
std::string & |
arName, |
|
|
double |
anValue |
|
) |
| |
◆ writeElement() [9/12]
bool ConfigFile::writeElement |
( |
std::string & |
arName, |
|
|
float |
anValue |
|
) |
| |
◆ writeElement() [10/12]
bool ConfigFile::writeElement |
( |
std::string & |
arName, |
|
|
int |
anValue |
|
) |
| |
◆ writeElement() [11/12]
bool ConfigFile::writeElement |
( |
std::string & |
arName, |
|
|
std::string & |
arValue |
|
) |
| |
◆ writeElement() [12/12]
bool ConfigFile::writeElement |
( |
std::string & |
arName, |
|
|
unsigned int |
anValue |
|
) |
| |
The documentation for this class was generated from the following files: