OWLNext 7.0
Borland's Object Windows Library for the modern age
|
#include <owl/configfl.h>
Additional Inherited Members | |
Static Public Member Functions inherited from owl::TConfigFile | |
static void | SetPrecision (int newprec=-1) |
static int | GetPrecision () |
Static Protected Member Functions inherited from owl::TConfigFile | |
static bool | StringToBool (LPCTSTR str, bool *val) |
This static method converts a string to a bool, accepting most common boolean keywords: yes, on, true and 1. | |
static tstring | BoolToString (bool val) |
This static method returns yes or no given a boolean value. | |
Protected Attributes inherited from owl::TConfigFile | |
tstring | FileName |
Static Protected Attributes inherited from owl::TConfigFile | |
static int | DefaultPrecision = -1 |
Definition at line 289 of file configfl.h.
owl::TMemConfigFile::TMemConfigFile | ( | const tstring & | name | ) |
Definition at line 1085 of file configfl.cpp.
|
virtual |
Definition at line 1092 of file configfl.cpp.
References Flush().
Definition at line 86 of file configfl.h.
Implements owl::TConfigFile.
Definition at line 1114 of file configfl.cpp.
References owl::TArrayBase::NPOS, and PRECONDITION.
Implements owl::TConfigFile.
Definition at line 85 of file configfl.h.
Implements owl::TConfigFile.
void owl::TMemConfigFile::Flush | ( | ) |
Definition at line 1098 of file configfl.cpp.
References owl::TIPtrArray< T >::Flush().
void owl::TMemConfigFile::LoadFromFile | ( | ) |
Definition at line 1291 of file configfl.cpp.
References _T, _tcslen, owl::TConfigFile::FileName, and owl::TIPtrArray< T >::Flush().
|
virtual |
Reimplemented from owl::TConfigFile.
Definition at line 1103 of file configfl.cpp.
References Flush(), and owl::TConfigFile::LoadValues().
Definition at line 83 of file configfl.cpp.
|
virtual |
Copies all value names of the given section to the specified buffer.
Each string is null-terminated, and the buffer is then terminated with a trailing null. Returns the number of characters written, excluding the trailing null-terminators. If the buffer is too small, the last string copied to the buffer may be truncated.
Implements owl::TConfigFile.
Definition at line 1139 of file configfl.cpp.
References _T, _tcsncpy, owl::TArrayBase::NPOS, and PRECONDITION.
|
virtual |
Implements owl::TConfigFile.
Copies all section names to the specified buffer.
Each string is null-terminated, and the buffer is then terminated with a trailing null. Returns the number of characters written, excluding the trailing null-terminators. If the buffer is too small, the last string copied to the buffer may be truncated.
Implements owl::TConfigFile.
Definition at line 1172 of file configfl.cpp.
References _T, _tcsncpy, owl::TArrayBase::Empty(), PRECONDITION, and owl::TArrayBase::Size().
Implements owl::TConfigFile.
Definition at line 84 of file configfl.cpp.
|
inline |
Definition at line 89 of file configfl.h.
uint owl::TConfigFile::ReadString | ( | const tstring & | section, |
const tstring & | entry, | ||
tstring & | buffer, | ||
LPCTSTR | defstr = 0 ) const |
String-aware overload.
Definition at line 88 of file configfl.cpp.
|
virtual |
Looks up the value of the given entry of the given section, and if found, copies it to the given buffer.
If not found, the given default value defstr
is copied to the buffer, unless defstr
is null, in which case an empty string is copied to the buffer.
Implements owl::TConfigFile.
Definition at line 1205 of file configfl.cpp.
References _T, _tcslen, _tcsncpy, owl::TArrayBase::NPOS, and PRECONDITION.
|
virtual |
Implements owl::TConfigFile.
|
virtual |
Implements owl::TConfigFile.
Definition at line 1245 of file configfl.cpp.
References _T, owl::TFile::CreateAlways, owl::TConfigFile::FileName, MAX_PATH, owl::TArrayBase::Size(), and owl::TFile::WriteOnly.
|
inline |
Definition at line 91 of file configfl.h.
Implements owl::TConfigFile.
Definition at line 1229 of file configfl.cpp.
References owl::TArrayBase::NPOS, and PRECONDITION.
|
virtual |
Implements owl::TConfigFile.