OWLNext 7.0
Borland's Object Windows Library for the modern age
|
Save/Load configuration parameters Base abstract class. More...
#include <owl/configfl.h>
Static Public Member Functions | |
static void | SetPrecision (int newprec=-1) |
static int | GetPrecision () |
Static Protected Member Functions | |
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 | |
tstring | FileName |
Static Protected Attributes | |
static int | DefaultPrecision = -1 |
Save/Load configuration parameters Base abstract class.
Definition at line 48 of file configfl.h.
|
inline |
Constructs instance and sets FileName to name.
Definition at line 54 of file configfl.h.
|
inlinevirtual |
Destroys the instance.
Definition at line 57 of file configfl.h.
This static method returns yes or no given a boolean value.
Definition at line 102 of file configfl.cpp.
Definition at line 389 of file configfl.h.
References EraseEntry().
Implemented in owl::TIniConfigFile, owl::TMemConfigFile, owl::TRegConfigFile, owl::TIniConfigFile, owl::TMemConfigFile, and owl::TRegConfigFile.
Definition at line 383 of file configfl.h.
References EraseSection().
Implemented in owl::TIniConfigFile, owl::TMemConfigFile, owl::TRegConfigFile, owl::TIniConfigFile, owl::TMemConfigFile, and owl::TRegConfigFile.
|
inline |
Definition at line 63 of file configfl.h.
Definition at line 61 of file configfl.h.
|
virtual |
Reimplemented in owl::TMemConfigFile.
Definition at line 144 of file configfl.cpp.
References _T, _tcslen, owl::is_integer(), MAX_PATH, WriteInteger(), and WriteString().
|
inline |
Definition at line 439 of file configfl.h.
References ReadBool().
This method reads a boolean value.
Definition at line 388 of file configfl.cpp.
References _T, _tcslen, COUNTOF, PRECONDITION, ReadString(), and StringToBool().
|
inline |
Definition at line 507 of file configfl.h.
References ReadColor().
This method reads an RGB color.
Definition at line 742 of file configfl.cpp.
References _T, _tcschr, _tcslen, _ttoi, COUNTOF, PRECONDITION, and ReadString().
|
inline |
Definition at line 396 of file configfl.h.
References ReadData().
|
virtual |
This method reads binary data.
Reimplemented in owl::TIniConfigFile, owl::TIniConfigFile, owl::TRegConfigFile, and owl::TRegConfigFile.
Definition at line 193 of file configfl.cpp.
References _stscanf, _T, _tcslen, PRECONDITION, and ReadString().
|
inline |
Definition at line 453 of file configfl.h.
References ReadDate().
Definition at line 416 of file configfl.cpp.
References _T, PRECONDITION, and ReadString().
|
inline |
Definition at line 425 of file configfl.h.
References ReadDouble().
Definition at line 333 of file configfl.cpp.
References _T, _tcslen, _tcstod, COUNTOF, PRECONDITION, and ReadString().
|
inline |
Definition at line 493 of file configfl.h.
References ReadFont().
This method will take a profile string of the form:
and fills in a logfont structure.
Definition at line 521 of file configfl.cpp.
References _T, _tcscat, _tcschr, _tcscpy, _tcslen, _tcstok, _ttoi, MAX_PATH, PRECONDITION, and ReadString().
|
inline |
Definition at line 411 of file configfl.h.
References ReadInteger().
This method reads an integer.
Reimplemented in owl::TRegConfigFile, and owl::TRegConfigFile.
Definition at line 236 of file configfl.cpp.
References _T, _tcstol, COUNTOF, PRECONDITION, and ReadString().
|
inline |
Definition at line 535 of file configfl.h.
References ReadPoint().
Definition at line 796 of file configfl.cpp.
References _istdigit, _T, _tcschr, _tcslen, _ttoi, COUNTOF, PRECONDITION, and ReadString().
|
inline |
Definition at line 521 of file configfl.h.
References ReadRect().
This method reads a rectangle.
Definition at line 844 of file configfl.cpp.
References _istdigit, _T, _tcschr, _tcslen, _ttoi, COUNTOF, PRECONDITION, and ReadString().
Definition at line 280 of file configfl.cpp.
References ReadSection().
|
pure virtual |
Implemented in owl::TIniConfigFile, owl::TMemConfigFile, owl::TRegConfigFile, owl::TIniConfigFile, owl::TMemConfigFile, and owl::TRegConfigFile.
Implemented in owl::TIniConfigFile, owl::TMemConfigFile, owl::TRegConfigFile, owl::TIniConfigFile, owl::TMemConfigFile, and owl::TRegConfigFile.
Definition at line 299 of file configfl.cpp.
References ReadSections().
|
inline |
Definition at line 549 of file configfl.h.
References ReadSize().
Definition at line 563 of file configfl.h.
References ReadPoint().
|
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 318 of file configfl.cpp.
References _T, MAX_PATH, and ReadString().
|
pure virtual |
Implemented in owl::TIniConfigFile, owl::TMemConfigFile, owl::TRegConfigFile, owl::TIniConfigFile, owl::TMemConfigFile, and owl::TRegConfigFile.
|
inline |
Definition at line 467 of file configfl.h.
References ReadSystemTime().
bool owl::TConfigFile::ReadSystemTime | ( | LPCTSTR | section, |
LPCTSTR | entry, | ||
TSystemTime & | val ) const |
Definition at line 444 of file configfl.cpp.
References _stscanf, _T, _tcslen, COUNTOF, PRECONDITION, and ReadString().
|
inline |
Definition at line 481 of file configfl.h.
References ReadTime().
Definition at line 472 of file configfl.cpp.
References _stscanf, _T, _tcslen, COUNTOF, PRECONDITION, and ReadString().
Definition at line 377 of file configfl.h.
References SectionExists().
Reimplemented in owl::TRegConfigFile, and owl::TRegConfigFile.
Definition at line 905 of file configfl.cpp.
References PRECONDITION, and ReadSection().
Definition at line 60 of file configfl.h.
This static method converts a string to a bool, accepting most common boolean keywords: yes, on, true and 1.
Definition at line 77 of file configfl.cpp.
Implemented in owl::TIniConfigFile, owl::TMemConfigFile, and owl::TRegConfigFile.
|
inline |
Definition at line 446 of file configfl.h.
References WriteBool().
This method writes a bool.
Definition at line 408 of file configfl.cpp.
References BoolToString(), PRECONDITION, and WriteString().
|
inline |
Definition at line 514 of file configfl.h.
References WriteColor().
This method writes an RGB color.
Definition at line 784 of file configfl.cpp.
References _T, PRECONDITION, and WriteString().
|
inline |
Definition at line 403 of file configfl.h.
References WriteData().
|
virtual |
This method writes binary data.
Reimplemented in owl::TIniConfigFile, owl::TIniConfigFile, owl::TRegConfigFile, and owl::TRegConfigFile.
Definition at line 219 of file configfl.cpp.
References _stprintf, _T, PRECONDITION, and WriteString().
|
inline |
Definition at line 460 of file configfl.h.
References WriteDate().
Definition at line 432 of file configfl.cpp.
References owl::TDate::Numbers, PRECONDITION, owl::TDate::SetPrintOption(), and WriteString().
|
inline |
Definition at line 432 of file configfl.h.
References WriteDouble().
This method writes an integer.
Definition at line 354 of file configfl.cpp.
References _itot, _stprintf, _T, DefaultPrecision, PRECONDITION, and WriteString().
|
inline |
Definition at line 500 of file configfl.h.
References WriteFont().
This method writes a font description in the following format:
Definition at line 651 of file configfl.cpp.
References _itot, _T, PRECONDITION, and WriteString().
|
inline |
Definition at line 418 of file configfl.h.
References WriteInteger().
This method writes an integer. We format it as a string.
Reimplemented in owl::TRegConfigFile, and owl::TRegConfigFile.
Definition at line 257 of file configfl.cpp.
References _ltot, _T, PRECONDITION, and WriteString().
|
inline |
Definition at line 542 of file configfl.h.
References WritePoint().
This method writes a TPoint.
Definition at line 832 of file configfl.cpp.
References _T, PRECONDITION, and WriteString().
|
inline |
Definition at line 528 of file configfl.h.
References WriteRect().
This method writes a rectangle.
Definition at line 883 of file configfl.cpp.
References _T, PRECONDITION, and WriteString().
|
inline |
Definition at line 556 of file configfl.h.
References WriteSize().
This method writes a TSize.
Definition at line 895 of file configfl.cpp.
References _T, PRECONDITION, and WriteString().
|
inline |
Definition at line 568 of file configfl.h.
References WriteString().
|
pure virtual |
Implemented in owl::TIniConfigFile, owl::TMemConfigFile, owl::TRegConfigFile, owl::TIniConfigFile, owl::TMemConfigFile, and owl::TRegConfigFile.
|
inline |
Definition at line 474 of file configfl.h.
References WriteSystemTime().
bool owl::TConfigFile::WriteSystemTime | ( | LPCTSTR | section, |
LPCTSTR | entry, | ||
const TSystemTime & | val ) |
Definition at line 461 of file configfl.cpp.
References _T, PRECONDITION, and WriteString().
|
inline |
Definition at line 487 of file configfl.h.
References WriteTime().
Definition at line 488 of file configfl.cpp.
References _T, PRECONDITION, and WriteString().
|
staticprotected |
Definition at line 154 of file configfl.h.
|
protected |
Definition at line 153 of file configfl.h.