#include <vmsDataFile.h>
Public Member Functions | |
| void | get_Value (LPCSTR pszSection, LPCSTR pszValueName, LPBYTE &pbValue, UINT &nValueSize) |
| void | get_Value (LPCSTR pszSection, LPCSTR pszValueName, LPCSTR &strValue) |
| void | get_Value (LPCSTR pszSection, LPCSTR pszValueName, double &fValue) |
| void | get_Value (LPCSTR pszSection, LPCSTR pszValueName, __int64 &i64Value) |
| void | get_Value (LPCSTR pszSection, LPCSTR pszValueName, int &iValue) |
| void | set_Value (LPCSTR pszSection, LPCSTR pszValueName, LPBYTE pbValue, UINT nValueSize) |
| void | set_Value (LPCSTR pszSection, LPCSTR pszValueName, LPCSTR pszValue) |
| void | set_Value (LPCSTR pszSection, LPCSTR pszValueName, double fValue) |
| void | set_Value (LPCSTR pszSection, LPCSTR pszValueName, __int64 i64Value) |
| void | set_Value (LPCSTR pszSection, LPCSTR pszValueName, int iValue) |
| LPDATAFILEITEM | CreateItem (LPCSTR pszSection, LPCSTR pszItemName) |
| LPDATAFILEITEM | CreateItem (LPDATAFILETREE pSection, LPCSTR pszItemName) |
| LPDATAFILETREE | CreateSection (LPCSTR pszSection, LPDATAFILETREE ptRoot=NULL) |
| void | LoadFromFile (HANDLE hFile) |
| void | SaveToFile (HANDLE hFile) |
| vmsDataFile () | |
| virtual | ~vmsDataFile () |
Protected Member Functions | |
| void | LoadFromFile (vmsFDM::vmsFile &file, vmsDataFileItem &item) |
| void | LoadFromFile (vmsFDM::vmsFile &file, LPDATAFILETREE ptRoot) |
| void | SaveToFile (vmsFDM::vmsFile &file, vmsDataFileItem &item) |
| void | SaveToFile (vmsFDM::vmsFile &file, LPDATAFILETREE ptRoot) |
| LPDATAFILETREE | FindItem (LPCSTR pszSection, LPCSTR pszValueName, LPDATAFILETREE ptRoot=NULL) |
Protected Attributes | |
| DATAFILETREE | m_tData |
Definition at line 118 of file vmsDataFile.h.
| vmsDataFile::vmsDataFile | ( | ) |
| vmsDataFile::~vmsDataFile | ( | ) | [virtual] |
Definition at line 21 of file vmsDataFile.cpp.
| void vmsDataFile::get_Value | ( | LPCSTR | pszSection, | |
| LPCSTR | pszValueName, | |||
| LPBYTE & | pbValue, | |||
| UINT & | nValueSize | |||
| ) |
Definition at line 266 of file vmsDataFile.cpp.
References FindItem(), and VVT_EMPTY.
Referenced by vmsAppSettingsStore::GetProfileBinary(), vmsAppSettingsStore::GetProfileInt(), and vmsAppSettingsStore::GetProfileString().
| void vmsDataFile::set_Value | ( | LPCSTR | pszSection, | |
| LPCSTR | pszValueName, | |||
| LPBYTE | pbValue, | |||
| UINT | nValueSize | |||
| ) |
Definition at line 232 of file vmsDataFile.cpp.
References CreateItem(), and vmsVariantValue::set().
Referenced by vmsAppSettingsStore::WriteProfileBinary(), vmsAppSettingsStore::WriteProfileInt(), and vmsAppSettingsStore::WriteProfileString().
Definition at line 226 of file vmsDataFile.cpp.
References CreateItem(), and vmsVariantValue::set().
Definition at line 220 of file vmsDataFile.cpp.
References CreateItem(), and vmsVariantValue::set().
Definition at line 214 of file vmsDataFile.cpp.
References CreateItem(), and vmsVariantValue::set().
Definition at line 208 of file vmsDataFile.cpp.
References CreateItem(), and vmsVariantValue::set().
| LPDATAFILEITEM vmsDataFile::CreateItem | ( | LPCSTR | pszSection, | |
| LPCSTR | pszItemName | |||
| ) |
Definition at line 203 of file vmsDataFile.cpp.
References CreateSection().
Referenced by set_Value().
| LPDATAFILEITEM vmsDataFile::CreateItem | ( | LPDATAFILETREE | pSection, | |
| LPCSTR | pszItemName | |||
| ) |
| LPDATAFILETREE vmsDataFile::CreateSection | ( | LPCSTR | pszSection, | |
| LPDATAFILETREE | ptRoot = NULL | |||
| ) |
| void vmsDataFile::LoadFromFile | ( | HANDLE | hFile | ) |
Definition at line 113 of file vmsDataFile.cpp.
References m_tData.
Referenced by LoadFromFile(), and vmsAppSettingsStore::LoadSettingsFromFile().
| void vmsDataFile::SaveToFile | ( | HANDLE | hFile | ) |
Definition at line 67 of file vmsDataFile.cpp.
References vmsFDM::vmsFile::Attach(), and m_tData.
Referenced by vmsAppSettingsStore::SaveSettingsToFile(), and SaveToFile().
| void vmsDataFile::LoadFromFile | ( | vmsFDM::vmsFile & | file, | |
| vmsDataFileItem & | item | |||
| ) | [protected] |
Definition at line 136 of file vmsDataFile.cpp.
References ASSERT, vmsFDM::vmsFile::Read(), vmsFDM::vmsFile::ReadDouble(), vmsFDM::vmsFile::ReadInt(), vmsFDM::vmsFile::ReadInt64(), vmsFDM::vmsFile::ReadString(), vmsVariantValue::set(), vmsDataFileItem::strName, vmsDataFileItem::vt, VVT_ASTRING, VVT_DOUBLE, VVT_EMPTY, VVT_INT, VVT_INT64, and VVT_LPBYTE.
| void vmsDataFile::LoadFromFile | ( | vmsFDM::vmsFile & | file, | |
| LPDATAFILETREE | ptRoot | |||
| ) | [protected] |
Definition at line 120 of file vmsDataFile.cpp.
References ASSERT, LoadFromFile(), NULL, and vmsFDM::vmsFile::ReadInt().
| void vmsDataFile::SaveToFile | ( | vmsFDM::vmsFile & | file, | |
| vmsDataFileItem & | item | |||
| ) | [protected] |
Definition at line 89 of file vmsDataFile.cpp.
References ASSERT, vmsVariantValue::bytebuffersize(), vmsDataFileItem::strName, vmsVariantValue::type(), vmsDataFileItem::vt, VVT_ASTRING, VVT_DOUBLE, VVT_EMPTY, VVT_INT, VVT_INT64, VVT_LPBYTE, vmsFDM::vmsFile::Write(), vmsFDM::vmsFile::WriteDouble(), vmsFDM::vmsFile::WriteInt(), vmsFDM::vmsFile::WriteInt64(), and vmsFDM::vmsFile::WriteString().
| void vmsDataFile::SaveToFile | ( | vmsFDM::vmsFile & | file, | |
| LPDATAFILETREE | ptRoot | |||
| ) | [protected] |
Definition at line 74 of file vmsDataFile.cpp.
References ASSERT, NULL, SaveToFile(), and vmsFDM::vmsFile::WriteInt().
| LPDATAFILETREE vmsDataFile::FindItem | ( | LPCSTR | pszSection, | |
| LPCSTR | pszValueName, | |||
| LPDATAFILETREE | ptRoot = NULL | |||
| ) | [protected] |
Definition at line 26 of file vmsDataFile.cpp.
References FALSE, fsString::IsEmpty(), m_tData, and NULL.
Referenced by CreateItem(), and get_Value().
DATAFILETREE vmsDataFile::m_tData [protected] |
Definition at line 150 of file vmsDataFile.h.
Referenced by CreateSection(), FindItem(), LoadFromFile(), SaveToFile(), and vmsDataFile().
1.5.6