113 const tstring::size_type limit = std::numeric_limits<tstring::size_type>::max();
126 throw TXOwl(
_T(
"TProfile::GetString: String is too large"));
bool WriteInt(LPCTSTR key, int value)
Looks up the key and replaces its value with the integer value passed (int).
void Flush()
Makes sure that all written profile values are flushed to the actual file.
bool GetString(LPCTSTR key, TCHAR *buff, unsigned buffSize, LPCTSTR defaultString=0)
Looks up and returns the string value associated with the given key string.
int GetInt(LPCTSTR key, int defaultInt=0)
Looks up and returns the integer value associated with the given string, key.
bool WriteString(LPCTSTR key, LPCTSTR str)
Looks up the key and replaces its value with the string value passed (str).
TCHAR * Section
Name of the section to use.
TCHAR * FileName
File name of the .INI file.
void Init(LPCTSTR section, LPCTSTR filename)
~TProfile()
Destroys the TProfile object.
TProfile(LPCTSTR section, LPCTSTR filename=0)
Constructs a TProfile object for the indicated section within the profile file specified by filename.
TXOwl is root class of the ObjectWindows exception hierarchy.
Reliable platform independent header for common memory and string functions.
char * strnewdup(const char *s, size_t minAllocSize=0)
Object Windows Library (OWLNext Core)
General definitions used by all ObjectWindows programs.
ObjectWindows exception class & function definitions.
Definition of TProfile class.