Triditizer
|
#include <Ini.h>
Public Member Functions | |
CIni () | |
CIni (LPCTSTR lpPathName) | |
virtual | ~CIni () |
void | SetPathName (LPCTSTR lpPathName) |
DWORD | GetPathName (LPTSTR lpBuffer, DWORD dwBufSize) const |
DWORD | GetString (LPCTSTR lpSection, LPCTSTR lpKey, LPTSTR lpBuffer, DWORD dwBufSize, LPCTSTR lpDefault=NULL) const |
BOOL | WriteString (LPCTSTR lpSection, LPCTSTR lpKey, LPCTSTR lpValue) const |
BOOL | AppendString (LPCTSTR Section, LPCTSTR lpKey, LPCTSTR lpString) const |
DWORD | GetArray (LPCTSTR lpSection, LPCTSTR lpKey, LPTSTR lpBuffer, DWORD dwBufSize, LPCTSTR lpDelimiter=NULL, BOOL bTrimString=TRUE) const |
int | GetInt (LPCTSTR lpSection, LPCTSTR lpKey, int nDefault, int nBase=BASE_DECIMAL) const |
BOOL | WriteInt (LPCTSTR lpSection, LPCTSTR lpKey, int nValue, int nBase=BASE_DECIMAL) const |
BOOL | IncreaseInt (LPCTSTR lpSection, LPCTSTR lpKey, int nIncrease=1, int nBase=BASE_DECIMAL) const |
UINT | GetUInt (LPCTSTR lpSection, LPCTSTR lpKey, UINT nDefault, int nBase=BASE_DECIMAL) const |
BOOL | WriteUInt (LPCTSTR lpSection, LPCTSTR lpKey, UINT nValue, int nBase=BASE_DECIMAL) const |
BOOL | IncreaseUInt (LPCTSTR lpSection, LPCTSTR lpKey, UINT nIncrease=1, int nBase=BASE_DECIMAL) const |
BOOL | GetBool (LPCTSTR lpSection, LPCTSTR lpKey, BOOL bDefault) const |
BOOL | WriteBool (LPCTSTR lpSection, LPCTSTR lpKey, BOOL bValue) const |
BOOL | InvertBool (LPCTSTR lpSection, LPCTSTR lpKey) const |
double | GetDouble (LPCTSTR lpSection, LPCTSTR lpKey, double fDefault) const |
BOOL | WriteDouble (LPCTSTR lpSection, LPCTSTR lpKey, double fValue, int nPrecision=-1) const |
BOOL | IncreaseDouble (LPCTSTR lpSection, LPCTSTR lpKey, double fIncrease, int nPrecision=-1) const |
TCHAR | GetChar (LPCTSTR lpSection, LPCTSTR lpKey, TCHAR cDefault) const |
BOOL | WriteChar (LPCTSTR lpSection, LPCTSTR lpKey, TCHAR c) const |
POINT | GetPoint (LPCTSTR lpSection, LPCTSTR lpKey, POINT ptDefault) const |
BOOL | WritePoint (LPCTSTR lpSection, LPCTSTR lpKey, POINT pt) const |
RECT | GetRect (LPCTSTR lpSection, LPCTSTR lpKey, RECT rcDefault) const |
BOOL | WriteRect (LPCTSTR lpSection, LPCTSTR lpKey, RECT rc) const |
DWORD | GetDataBlock (LPCTSTR lpSection, LPCTSTR lpKey, LPVOID lpBuffer, DWORD dwBufSize, DWORD dwOffset=0) const |
BOOL | WriteDataBlock (LPCTSTR lpSection, LPCTSTR lpKey, LPCVOID lpData, DWORD dwDataSize) const |
BOOL | AppendDataBlock (LPCTSTR lpSection, LPCTSTR lpKey, LPCVOID lpData, DWORD dwDataSize) const |
BOOL | IsSectionExist (LPCTSTR lpSection) const |
DWORD | GetSectionNames (LPTSTR lpBuffer, DWORD dwBufSize) const |
BOOL | CopySection (LPCTSTR lpSrcSection, LPCTSTR lpDestSection, BOOL bFailIfExist) const |
BOOL | MoveSection (LPCTSTR lpSrcSection, LPCTSTR lpDestSection, BOOL bFailIfExist=TRUE) const |
BOOL | DeleteSection (LPCTSTR lpSection) const |
BOOL | IsKeyExist (LPCTSTR lpSection, LPCTSTR lpKey) const |
DWORD | GetKeyLines (LPCTSTR lpSection, LPTSTR lpBuffer, DWORD dwBufSize) const |
DWORD | GetKeyNames (LPCTSTR lpSection, LPTSTR lpBuffer, DWORD dwBufSize) const |
BOOL | CopyKey (LPCTSTR lpSrcSection, LPCTSTR lpSrcKey, LPCTSTR lpDestSection, LPCTSTR lpDestKey, BOOL bFailIfExist) const |
BOOL | MoveKey (LPCTSTR lpSrcSection, LPCTSTR lpSrcKey, LPCTSTR lpDestSection, LPCTSTR lpDestKey, BOOL bFailIfExist=TRUE) const |
BOOL | DeleteKey (LPCTSTR lpSection, LPCTSTR lpKey) const |
Static Public Member Functions | |
static BOOL | ParseDNTString (LPCTSTR lpString, SUBSTRPROC lpFnStrProc, LPVOID lpParam=NULL) |
static BOOL | StringToBool (LPCTSTR lpString, BOOL bDefault=FALSE) |
Protected Member Functions | |
LPTSTR | __GetStringDynamic (LPCTSTR lpSection, LPCTSTR lpKey, LPCTSTR lpDefault=NULL) const |
Static Protected Member Functions | |
static LPTSTR | __StrDupEx (LPCTSTR lpStart, LPCTSTR lpEnd) |
static BOOL | __TrimString (LPTSTR lpBuffer) |
static DWORD | __StringSplit (LPCTSTR lpString, LPTSTR lpBuffer, DWORD dwBufSize, LPCTSTR lpDelimiter=NULL, BOOL bTrimString=TRUE) |
static void | __ToBinaryString (UINT nNumber, LPTSTR lpBuffer, DWORD dwBufSize) |
static int | __ValidateBase (int nBase) |
static void | __IntToString (int nNumber, LPTSTR lpBuffer, int nBase) |
static void | __UIntToString (UINT nNumber, LPTSTR lpBuffer, int nBase) |
static BOOL CALLBACK | __SubStrCompare (LPCTSTR lpString1, LPVOID lpParam) |
static BOOL CALLBACK | __KeyPairProc (LPCTSTR lpString, LPVOID lpParam) |
Protected Attributes | |
LPTSTR | m_pszPathName |
CIni::CIni | ( | ) |
CIni::CIni | ( | LPCTSTR | lpPathName | ) |
|
virtual |
|
protected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
BOOL CIni::AppendDataBlock | ( | LPCTSTR | lpSection, |
LPCTSTR | lpKey, | ||
LPCVOID | lpData, | ||
DWORD | dwDataSize | ||
) | const |
BOOL CIni::AppendString | ( | LPCTSTR | Section, |
LPCTSTR | lpKey, | ||
LPCTSTR | lpString | ||
) | const |
BOOL CIni::CopyKey | ( | LPCTSTR | lpSrcSection, |
LPCTSTR | lpSrcKey, | ||
LPCTSTR | lpDestSection, | ||
LPCTSTR | lpDestKey, | ||
BOOL | bFailIfExist | ||
) | const |
BOOL CIni::CopySection | ( | LPCTSTR | lpSrcSection, |
LPCTSTR | lpDestSection, | ||
BOOL | bFailIfExist | ||
) | const |
BOOL CIni::DeleteKey | ( | LPCTSTR | lpSection, |
LPCTSTR | lpKey | ||
) | const |
BOOL CIni::DeleteSection | ( | LPCTSTR | lpSection | ) | const |
DWORD CIni::GetArray | ( | LPCTSTR | lpSection, |
LPCTSTR | lpKey, | ||
LPTSTR | lpBuffer, | ||
DWORD | dwBufSize, | ||
LPCTSTR | lpDelimiter = NULL , |
||
BOOL | bTrimString = TRUE |
||
) | const |
BOOL CIni::GetBool | ( | LPCTSTR | lpSection, |
LPCTSTR | lpKey, | ||
BOOL | bDefault | ||
) | const |
TCHAR CIni::GetChar | ( | LPCTSTR | lpSection, |
LPCTSTR | lpKey, | ||
TCHAR | cDefault | ||
) | const |
DWORD CIni::GetDataBlock | ( | LPCTSTR | lpSection, |
LPCTSTR | lpKey, | ||
LPVOID | lpBuffer, | ||
DWORD | dwBufSize, | ||
DWORD | dwOffset = 0 |
||
) | const |
double CIni::GetDouble | ( | LPCTSTR | lpSection, |
LPCTSTR | lpKey, | ||
double | fDefault | ||
) | const |
int CIni::GetInt | ( | LPCTSTR | lpSection, |
LPCTSTR | lpKey, | ||
int | nDefault, | ||
int | nBase = BASE_DECIMAL |
||
) | const |
DWORD CIni::GetKeyLines | ( | LPCTSTR | lpSection, |
LPTSTR | lpBuffer, | ||
DWORD | dwBufSize | ||
) | const |
DWORD CIni::GetKeyNames | ( | LPCTSTR | lpSection, |
LPTSTR | lpBuffer, | ||
DWORD | dwBufSize | ||
) | const |
DWORD CIni::GetPathName | ( | LPTSTR | lpBuffer, |
DWORD | dwBufSize | ||
) | const |
POINT CIni::GetPoint | ( | LPCTSTR | lpSection, |
LPCTSTR | lpKey, | ||
POINT | ptDefault | ||
) | const |
RECT CIni::GetRect | ( | LPCTSTR | lpSection, |
LPCTSTR | lpKey, | ||
RECT | rcDefault | ||
) | const |
DWORD CIni::GetSectionNames | ( | LPTSTR | lpBuffer, |
DWORD | dwBufSize | ||
) | const |
DWORD CIni::GetString | ( | LPCTSTR | lpSection, |
LPCTSTR | lpKey, | ||
LPTSTR | lpBuffer, | ||
DWORD | dwBufSize, | ||
LPCTSTR | lpDefault = NULL |
||
) | const |
UINT CIni::GetUInt | ( | LPCTSTR | lpSection, |
LPCTSTR | lpKey, | ||
UINT | nDefault, | ||
int | nBase = BASE_DECIMAL |
||
) | const |
BOOL CIni::IncreaseDouble | ( | LPCTSTR | lpSection, |
LPCTSTR | lpKey, | ||
double | fIncrease, | ||
int | nPrecision = -1 |
||
) | const |
BOOL CIni::IncreaseInt | ( | LPCTSTR | lpSection, |
LPCTSTR | lpKey, | ||
int | nIncrease = 1 , |
||
int | nBase = BASE_DECIMAL |
||
) | const |
BOOL CIni::IncreaseUInt | ( | LPCTSTR | lpSection, |
LPCTSTR | lpKey, | ||
UINT | nIncrease = 1 , |
||
int | nBase = BASE_DECIMAL |
||
) | const |
BOOL CIni::InvertBool | ( | LPCTSTR | lpSection, |
LPCTSTR | lpKey | ||
) | const |
BOOL CIni::IsKeyExist | ( | LPCTSTR | lpSection, |
LPCTSTR | lpKey | ||
) | const |
BOOL CIni::IsSectionExist | ( | LPCTSTR | lpSection | ) | const |
BOOL CIni::MoveKey | ( | LPCTSTR | lpSrcSection, |
LPCTSTR | lpSrcKey, | ||
LPCTSTR | lpDestSection, | ||
LPCTSTR | lpDestKey, | ||
BOOL | bFailIfExist = TRUE |
||
) | const |
BOOL CIni::MoveSection | ( | LPCTSTR | lpSrcSection, |
LPCTSTR | lpDestSection, | ||
BOOL | bFailIfExist = TRUE |
||
) | const |
|
static |
void CIni::SetPathName | ( | LPCTSTR | lpPathName | ) |
|
static |
BOOL CIni::WriteBool | ( | LPCTSTR | lpSection, |
LPCTSTR | lpKey, | ||
BOOL | bValue | ||
) | const |
BOOL CIni::WriteChar | ( | LPCTSTR | lpSection, |
LPCTSTR | lpKey, | ||
TCHAR | c | ||
) | const |
BOOL CIni::WriteDataBlock | ( | LPCTSTR | lpSection, |
LPCTSTR | lpKey, | ||
LPCVOID | lpData, | ||
DWORD | dwDataSize | ||
) | const |
BOOL CIni::WriteDouble | ( | LPCTSTR | lpSection, |
LPCTSTR | lpKey, | ||
double | fValue, | ||
int | nPrecision = -1 |
||
) | const |
BOOL CIni::WriteInt | ( | LPCTSTR | lpSection, |
LPCTSTR | lpKey, | ||
int | nValue, | ||
int | nBase = BASE_DECIMAL |
||
) | const |
BOOL CIni::WritePoint | ( | LPCTSTR | lpSection, |
LPCTSTR | lpKey, | ||
POINT | pt | ||
) | const |
BOOL CIni::WriteRect | ( | LPCTSTR | lpSection, |
LPCTSTR | lpKey, | ||
RECT | rc | ||
) | const |
BOOL CIni::WriteString | ( | LPCTSTR | lpSection, |
LPCTSTR | lpKey, | ||
LPCTSTR | lpValue | ||
) | const |
BOOL CIni::WriteUInt | ( | LPCTSTR | lpSection, |
LPCTSTR | lpKey, | ||
UINT | nValue, | ||
int | nBase = BASE_DECIMAL |
||
) | const |
|
protected |