OWLNext    7.0
Borland's Object Windows Library for the modern age
Loading...
Searching...
No Matches
owl::TConfigFileSection Class Reference

Small inline wrapper around Section. More...

#include <owl/configfl.h>

Public Member Functions

 TConfigFileSection (TConfigFile &file, const tstring &section)
 
const tstringGetSection ()
 
bool Erase ()
 
bool EraseEntry (LPCTSTR entry)
 
uint ReadString (LPCTSTR entry, TCHAR *buffer, uint bufSize, LPCTSTR defstr=0) const
 
bool WriteString (LPCTSTR entry, LPCTSTR value)
 
uint ReadString (const tstring &entry, tstring &buffer, LPCTSTR defstr=0) const
 
uint ReadString (const tstring &entry, tstring &buffer, const tstring &defstr) const
 
bool WriteString (const tstring &entry, const tstring &value)
 
bool ReadData (LPCTSTR entry, void *buffer, uint size) const
 
bool WriteData (LPCTSTR entry, void *buffer, uint size)
 
bool ReadData (const tstring &entry, void *buffer, uint size) const
 
bool WriteData (const tstring &entry, void *buffer, uint size)
 
int ReadInteger (LPCTSTR entry, int defint=0) const
 
bool WriteInteger (LPCTSTR entry, int value)
 
int ReadInteger (const tstring &entry, int defint=0) const
 
bool WriteInteger (const tstring &entry, int value)
 
double ReadDouble (LPCTSTR entry, double defval) const
 
bool WriteDouble (LPCTSTR entry, double defval)
 
double ReadDouble (const tstring &entry, double defval) const
 
bool WriteDouble (const tstring &entry, double defval)
 
bool ReadBool (LPCTSTR entry, bool defval) const
 
bool WriteBool (LPCTSTR entry, bool val)
 
bool ReadBool (const tstring &entry, bool defval) const
 
bool WriteBool (const tstring &entry, bool val)
 
bool ReadDate (LPCTSTR entry, TDate &value) const
 
bool WriteDate (LPCTSTR entry, const TDate &val)
 
bool ReadDate (const tstring &entry, TDate &value) const
 
bool WriteDate (const tstring &entry, const TDate &val)
 
bool ReadSystemTime (LPCTSTR entry, TSystemTime &val) const
 
bool WriteSystemTime (LPCTSTR entry, const TSystemTime &val)
 
bool ReadSystemTime (const tstring &entry, TSystemTime &val) const
 
bool WriteSystemTime (const tstring &entry, const TSystemTime &val)
 
bool ReadTime (LPCTSTR entry, TTime &val) const
 
bool WriteTime (LPCTSTR entry, TTime &val)
 
bool ReadTime (const tstring &entry, TTime &val) const
 
bool WriteTime (const tstring &entry, TTime &val)
 
bool ReadFont (LPCTSTR entry, LOGFONT &font) const
 
bool WriteFont (LPCTSTR entry, const LOGFONT &font)
 
bool ReadFont (const tstring &entry, LOGFONT &font) const
 
bool WriteFont (const tstring &entry, const LOGFONT &font)
 
bool ReadColor (LPCTSTR entry, TColor &color) const
 
bool WriteColor (LPCTSTR entry, const TColor &clr)
 
bool ReadColor (const tstring &entry, TColor &color) const
 
bool WriteColor (const tstring &entry, const TColor &clr)
 
bool ReadRect (LPCTSTR entry, TRect &val) const
 
bool WriteRect (LPCTSTR entry, const TRect &rc)
 
bool ReadRect (const tstring &entry, TRect &val) const
 
bool WriteRect (const tstring &entry, const TRect &rc)
 
bool ReadPoint (LPCTSTR entry, TPoint &val) const
 
bool WritePoint (LPCTSTR entry, const TPoint &point)
 
bool ReadPoint (const tstring &entry, TPoint &val) const
 
bool WritePoint (const tstring &entry, const TPoint &point)
 
bool ReadSize (LPCTSTR entry, TSize &sz) const
 
bool WriteSize (LPCTSTR entry, const TSize &size)
 
bool ReadSize (const tstring &entry, TSize &sz) const
 
bool WriteSize (const tstring &entry, const TSize &size)
 

Protected Attributes

tstring Section
 
TConfigFileFile
 

Detailed Description

Small inline wrapper around Section.

ConfigFile must exist all the time while the section exist!

Definition at line 163 of file configfl.h.

Constructor & Destructor Documentation

◆ TConfigFileSection()

owl::TConfigFileSection::TConfigFileSection ( TConfigFile & file,
const tstring & section )
inline

Definition at line 166 of file configfl.h.

References owl::Section.

Member Function Documentation

◆ Erase()

bool owl::TConfigFileSection::Erase ( )
inline

Definition at line 171 of file configfl.h.

References owl::Section.

◆ EraseEntry()

bool owl::TConfigFileSection::EraseEntry ( LPCTSTR entry)
inline

Definition at line 578 of file configfl.h.

References owl::TConfigFile::EraseEntry(), File, and Section.

◆ GetSection()

const tstring & owl::TConfigFileSection::GetSection ( )
inline

Definition at line 169 of file configfl.h.

References owl::Section.

◆ ReadBool() [1/2]

bool owl::TConfigFileSection::ReadBool ( const tstring & entry,
bool defval ) const
inline

Definition at line 733 of file configfl.h.

References File, owl::TConfigFile::ReadBool(), and Section.

◆ ReadBool() [2/2]

bool owl::TConfigFileSection::ReadBool ( LPCTSTR entry,
bool defval ) const
inline

Definition at line 717 of file configfl.h.

References File, owl::TConfigFile::ReadBool(), and Section.

◆ ReadColor() [1/2]

bool owl::TConfigFileSection::ReadColor ( const tstring & entry,
TColor & color ) const
inline

Definition at line 893 of file configfl.h.

References File, owl::TConfigFile::ReadColor(), and Section.

◆ ReadColor() [2/2]

bool owl::TConfigFileSection::ReadColor ( LPCTSTR entry,
TColor & color ) const
inline

Definition at line 877 of file configfl.h.

References File, owl::TConfigFile::ReadColor(), and Section.

◆ ReadData() [1/2]

bool owl::TConfigFileSection::ReadData ( const tstring & entry,
void * buffer,
uint size ) const
inline

Definition at line 637 of file configfl.h.

References File, owl::TConfigFile::ReadData(), and Section.

◆ ReadData() [2/2]

bool owl::TConfigFileSection::ReadData ( LPCTSTR entry,
void * buffer,
uint size ) const
inline

Definition at line 621 of file configfl.h.

References File, owl::TConfigFile::ReadData(), and Section.

◆ ReadDate() [1/2]

bool owl::TConfigFileSection::ReadDate ( const tstring & entry,
TDate & value ) const
inline

Definition at line 765 of file configfl.h.

References File, owl::TConfigFile::ReadDate(), and Section.

◆ ReadDate() [2/2]

bool owl::TConfigFileSection::ReadDate ( LPCTSTR entry,
TDate & value ) const
inline

Definition at line 749 of file configfl.h.

References File, owl::TConfigFile::ReadDate(), and Section.

◆ ReadDouble() [1/2]

double owl::TConfigFileSection::ReadDouble ( const tstring & entry,
double defval ) const
inline

Definition at line 701 of file configfl.h.

References File, owl::TConfigFile::ReadDouble(), and Section.

◆ ReadDouble() [2/2]

double owl::TConfigFileSection::ReadDouble ( LPCTSTR entry,
double defval ) const
inline

Definition at line 685 of file configfl.h.

References File, owl::TConfigFile::ReadDouble(), and Section.

◆ ReadFont() [1/2]

bool owl::TConfigFileSection::ReadFont ( const tstring & entry,
LOGFONT & font ) const
inline

Definition at line 861 of file configfl.h.

References File, owl::TConfigFile::ReadFont(), and Section.

◆ ReadFont() [2/2]

bool owl::TConfigFileSection::ReadFont ( LPCTSTR entry,
LOGFONT & font ) const
inline

Definition at line 845 of file configfl.h.

References File, owl::TConfigFile::ReadFont(), and Section.

◆ ReadInteger() [1/2]

int owl::TConfigFileSection::ReadInteger ( const tstring & entry,
int defint = 0 ) const
inline

Definition at line 669 of file configfl.h.

References File, owl::TConfigFile::ReadInteger(), and Section.

◆ ReadInteger() [2/2]

int owl::TConfigFileSection::ReadInteger ( LPCTSTR entry,
int defint = 0 ) const
inline

Definition at line 653 of file configfl.h.

References File, owl::TConfigFile::ReadInteger(), and Section.

◆ ReadPoint() [1/2]

bool owl::TConfigFileSection::ReadPoint ( const tstring & entry,
TPoint & val ) const
inline

Definition at line 957 of file configfl.h.

References File, owl::TConfigFile::ReadPoint(), and Section.

◆ ReadPoint() [2/2]

bool owl::TConfigFileSection::ReadPoint ( LPCTSTR entry,
TPoint & val ) const
inline

Definition at line 941 of file configfl.h.

References File, owl::TConfigFile::ReadPoint(), and Section.

◆ ReadRect() [1/2]

bool owl::TConfigFileSection::ReadRect ( const tstring & entry,
TRect & val ) const
inline

Definition at line 925 of file configfl.h.

References File, owl::TConfigFile::ReadRect(), and Section.

◆ ReadRect() [2/2]

bool owl::TConfigFileSection::ReadRect ( LPCTSTR entry,
TRect & val ) const
inline

Definition at line 909 of file configfl.h.

References File, owl::TConfigFile::ReadRect(), and Section.

◆ ReadSize() [1/2]

bool owl::TConfigFileSection::ReadSize ( const tstring & entry,
TSize & sz ) const
inline

Definition at line 989 of file configfl.h.

References File, owl::TConfigFile::ReadSize(), and Section.

◆ ReadSize() [2/2]

bool owl::TConfigFileSection::ReadSize ( LPCTSTR entry,
TSize & sz ) const
inline

Definition at line 973 of file configfl.h.

References File, owl::TConfigFile::ReadSize(), and Section.

◆ ReadString() [1/3]

uint owl::TConfigFileSection::ReadString ( const tstring & entry,
tstring & buffer,
const tstring & defstr ) const
inline

Definition at line 177 of file configfl.h.

◆ ReadString() [2/3]

uint owl::TConfigFileSection::ReadString ( const tstring & entry,
tstring & buffer,
LPCTSTR defstr = 0 ) const
inline

Definition at line 604 of file configfl.h.

References File, owl::TConfigFile::ReadString(), and Section.

◆ ReadString() [3/3]

uint owl::TConfigFileSection::ReadString ( LPCTSTR entry,
TCHAR * buffer,
uint bufSize,
LPCTSTR defstr = 0 ) const
inline

Definition at line 587 of file configfl.h.

References File, owl::TConfigFile::ReadString(), and Section.

◆ ReadSystemTime() [1/2]

bool owl::TConfigFileSection::ReadSystemTime ( const tstring & entry,
TSystemTime & val ) const
inline

Definition at line 797 of file configfl.h.

References File, owl::TConfigFile::ReadSystemTime(), and Section.

◆ ReadSystemTime() [2/2]

bool owl::TConfigFileSection::ReadSystemTime ( LPCTSTR entry,
TSystemTime & val ) const
inline

Definition at line 781 of file configfl.h.

References File, owl::TConfigFile::ReadSystemTime(), and Section.

◆ ReadTime() [1/2]

bool owl::TConfigFileSection::ReadTime ( const tstring & entry,
TTime & val ) const
inline

Definition at line 829 of file configfl.h.

References File, owl::TConfigFile::ReadTime(), and Section.

◆ ReadTime() [2/2]

bool owl::TConfigFileSection::ReadTime ( LPCTSTR entry,
TTime & val ) const
inline

Definition at line 813 of file configfl.h.

References File, owl::TConfigFile::ReadTime(), and Section.

◆ WriteBool() [1/2]

bool owl::TConfigFileSection::WriteBool ( const tstring & entry,
bool val )
inline

Definition at line 741 of file configfl.h.

References File, Section, and owl::TConfigFile::WriteBool().

◆ WriteBool() [2/2]

bool owl::TConfigFileSection::WriteBool ( LPCTSTR entry,
bool val )
inline

Definition at line 725 of file configfl.h.

References File, Section, and owl::TConfigFile::WriteBool().

◆ WriteColor() [1/2]

bool owl::TConfigFileSection::WriteColor ( const tstring & entry,
const TColor & clr )
inline

Definition at line 901 of file configfl.h.

References File, Section, and owl::TConfigFile::WriteColor().

◆ WriteColor() [2/2]

bool owl::TConfigFileSection::WriteColor ( LPCTSTR entry,
const TColor & clr )
inline

Definition at line 885 of file configfl.h.

References File, Section, and owl::TConfigFile::WriteColor().

◆ WriteData() [1/2]

bool owl::TConfigFileSection::WriteData ( const tstring & entry,
void * buffer,
uint size )
inline

Definition at line 645 of file configfl.h.

References File, Section, and owl::TConfigFile::WriteData().

◆ WriteData() [2/2]

bool owl::TConfigFileSection::WriteData ( LPCTSTR entry,
void * buffer,
uint size )
inline

Definition at line 629 of file configfl.h.

References File, Section, and owl::TConfigFile::WriteData().

◆ WriteDate() [1/2]

bool owl::TConfigFileSection::WriteDate ( const tstring & entry,
const TDate & val )
inline

Definition at line 773 of file configfl.h.

References File, Section, and owl::TConfigFile::WriteDate().

◆ WriteDate() [2/2]

bool owl::TConfigFileSection::WriteDate ( LPCTSTR entry,
const TDate & val )
inline

Definition at line 757 of file configfl.h.

References File, Section, and owl::TConfigFile::WriteDate().

◆ WriteDouble() [1/2]

bool owl::TConfigFileSection::WriteDouble ( const tstring & entry,
double defval )
inline

Definition at line 709 of file configfl.h.

References File, Section, and owl::TConfigFile::WriteDouble().

◆ WriteDouble() [2/2]

bool owl::TConfigFileSection::WriteDouble ( LPCTSTR entry,
double defval )
inline

Definition at line 693 of file configfl.h.

References File, Section, and owl::TConfigFile::WriteDouble().

◆ WriteFont() [1/2]

bool owl::TConfigFileSection::WriteFont ( const tstring & entry,
const LOGFONT & font )
inline

Definition at line 869 of file configfl.h.

References File, Section, and owl::TConfigFile::WriteFont().

◆ WriteFont() [2/2]

bool owl::TConfigFileSection::WriteFont ( LPCTSTR entry,
const LOGFONT & font )
inline

Definition at line 853 of file configfl.h.

References File, Section, and owl::TConfigFile::WriteFont().

◆ WriteInteger() [1/2]

bool owl::TConfigFileSection::WriteInteger ( const tstring & entry,
int value )
inline

Definition at line 677 of file configfl.h.

References File, Section, and owl::TConfigFile::WriteInteger().

◆ WriteInteger() [2/2]

bool owl::TConfigFileSection::WriteInteger ( LPCTSTR entry,
int value )
inline

Definition at line 661 of file configfl.h.

References File, Section, and owl::TConfigFile::WriteInteger().

◆ WritePoint() [1/2]

bool owl::TConfigFileSection::WritePoint ( const tstring & entry,
const TPoint & point )
inline

Definition at line 965 of file configfl.h.

References File, Section, and owl::TConfigFile::WritePoint().

◆ WritePoint() [2/2]

bool owl::TConfigFileSection::WritePoint ( LPCTSTR entry,
const TPoint & point )
inline

Definition at line 949 of file configfl.h.

References File, Section, and owl::TConfigFile::WritePoint().

◆ WriteRect() [1/2]

bool owl::TConfigFileSection::WriteRect ( const tstring & entry,
const TRect & rc )
inline

Definition at line 933 of file configfl.h.

References File, Section, and owl::TConfigFile::WriteRect().

◆ WriteRect() [2/2]

bool owl::TConfigFileSection::WriteRect ( LPCTSTR entry,
const TRect & rc )
inline

Definition at line 917 of file configfl.h.

References File, Section, and owl::TConfigFile::WriteRect().

◆ WriteSize() [1/2]

bool owl::TConfigFileSection::WriteSize ( const tstring & entry,
const TSize & size )
inline

Definition at line 997 of file configfl.h.

References File, Section, and owl::TConfigFile::WriteSize().

◆ WriteSize() [2/2]

bool owl::TConfigFileSection::WriteSize ( LPCTSTR entry,
const TSize & size )
inline

Definition at line 981 of file configfl.h.

References File, Section, and owl::TConfigFile::WriteSize().

◆ WriteString() [1/2]

bool owl::TConfigFileSection::WriteString ( const tstring & entry,
const tstring & value )
inline

Definition at line 613 of file configfl.h.

References File, Section, and owl::TConfigFile::WriteString().

◆ WriteString() [2/2]

bool owl::TConfigFileSection::WriteString ( LPCTSTR entry,
LPCTSTR value )
inline

Definition at line 596 of file configfl.h.

References File, Section, and owl::TConfigFile::WriteString().

◆ WriteSystemTime() [1/2]

bool owl::TConfigFileSection::WriteSystemTime ( const tstring & entry,
const TSystemTime & val )
inline

Definition at line 805 of file configfl.h.

References File, Section, and owl::TConfigFile::WriteSystemTime().

◆ WriteSystemTime() [2/2]

bool owl::TConfigFileSection::WriteSystemTime ( LPCTSTR entry,
const TSystemTime & val )
inline

Definition at line 789 of file configfl.h.

References File, Section, and owl::TConfigFile::WriteSystemTime().

◆ WriteTime() [1/2]

bool owl::TConfigFileSection::WriteTime ( const tstring & entry,
TTime & val )
inline

Definition at line 837 of file configfl.h.

References File, Section, and owl::TConfigFile::WriteTime().

◆ WriteTime() [2/2]

bool owl::TConfigFileSection::WriteTime ( LPCTSTR entry,
TTime & val )
inline

Definition at line 821 of file configfl.h.

References File, Section, and owl::TConfigFile::WriteTime().

Member Data Documentation

◆ File

TConfigFile& owl::TConfigFileSection::File
protected

Definition at line 243 of file configfl.h.

◆ Section

tstring owl::TConfigFileSection::Section
protected

Definition at line 242 of file configfl.h.


The documentation for this class was generated from the following file: