WXP C++ Library Version 6.74.9
|
This class specifies a list of variables. More...
#include "../include/VarFile.h"
Public Member Functions | |
VarFile () | |
int | open (const char *file) |
bool | isOpen () |
int | rewind () |
int | close () |
int | read (VarFileData &data) |
This class specifies a list of variables.
VarFile::VarFile | ( | ) |
Constructor. Initializes values
int VarFile::close | ( | ) |
Closes a variable file
References WXP::File::close().
int VarFile::open | ( | const char * | rfile | ) |
Opens a variable file
rfile | File to open |
References WXP::FileTool::addPath(), WXP::String::get(), WXP::Wxp::getDatabasePath(), WXP::File::isOpen(), and WXP::File::open().
int VarFile::read | ( | VarFileData & | data | ) |
Reads a variable specifiction from a variable file
data | Variable data |
References WXP::String::append(), WXP::String::chop(), WXP::StrLib::copy(), WXP::String::copy(), WXP::StrLib::getChar(), WXP::StrLib::getField(), WXP::File::getLine(), WXP::VarFileData::init(), WXP::File::isOpen(), WXP::StrLib::replace(), WXP::String::stripWS(), and WXP::StrLib::trimWS().
int VarFile::rewind | ( | ) |
Rewinds a variable file
References WXP::File::rewind().