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 573 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 728 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 712 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 888 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 872 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 632 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 616 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 760 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 744 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 696 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 680 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 856 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 840 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 664 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 648 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 952 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 936 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 920 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 904 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 984 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 968 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 599 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 582 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 792 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 776 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 824 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 808 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 736 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 720 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 896 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 880 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 640 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 624 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 768 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 752 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 704 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 688 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 864 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 848 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 672 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 656 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 960 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 944 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 928 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 912 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 992 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 976 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 608 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 591 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 800 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 784 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 832 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 816 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: