vmsDataFile Class Reference

#include <vmsDataFile.h>

List of all members.

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


Detailed Description

Definition at line 118 of file vmsDataFile.h.


Constructor & Destructor Documentation

vmsDataFile::vmsDataFile (  ) 

Definition at line 16 of file vmsDataFile.cpp.

References m_tData.

vmsDataFile::~vmsDataFile (  )  [virtual]

Definition at line 21 of file vmsDataFile.cpp.


Member Function Documentation

void vmsDataFile::get_Value ( LPCSTR  pszSection,
LPCSTR  pszValueName,
LPBYTE &  pbValue,
UINT nValueSize 
)

void vmsDataFile::get_Value ( LPCSTR  pszSection,
LPCSTR  pszValueName,
LPCSTR strValue 
)

Definition at line 259 of file vmsDataFile.cpp.

References FindItem().

void vmsDataFile::get_Value ( LPCSTR  pszSection,
LPCSTR  pszValueName,
double &  fValue 
)

Definition at line 252 of file vmsDataFile.cpp.

References FindItem().

void vmsDataFile::get_Value ( LPCSTR  pszSection,
LPCSTR  pszValueName,
__int64 &  i64Value 
)

Definition at line 245 of file vmsDataFile.cpp.

References FindItem().

void vmsDataFile::get_Value ( LPCSTR  pszSection,
LPCSTR  pszValueName,
int &  iValue 
)

Definition at line 238 of file vmsDataFile.cpp.

References FindItem().

void vmsDataFile::set_Value ( LPCSTR  pszSection,
LPCSTR  pszValueName,
LPBYTE  pbValue,
UINT  nValueSize 
)

void vmsDataFile::set_Value ( LPCSTR  pszSection,
LPCSTR  pszValueName,
LPCSTR  pszValue 
)

Definition at line 226 of file vmsDataFile.cpp.

References CreateItem(), and vmsVariantValue::set().

void vmsDataFile::set_Value ( LPCSTR  pszSection,
LPCSTR  pszValueName,
double  fValue 
)

Definition at line 220 of file vmsDataFile.cpp.

References CreateItem(), and vmsVariantValue::set().

void vmsDataFile::set_Value ( LPCSTR  pszSection,
LPCSTR  pszValueName,
__int64  i64Value 
)

Definition at line 214 of file vmsDataFile.cpp.

References CreateItem(), and vmsVariantValue::set().

void vmsDataFile::set_Value ( LPCSTR  pszSection,
LPCSTR  pszValueName,
int  iValue 
)

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 
)

Definition at line 192 of file vmsDataFile.cpp.

References FindItem(), and NULL.

LPDATAFILETREE vmsDataFile::CreateSection ( LPCSTR  pszSection,
LPDATAFILETREE  ptRoot = NULL 
)

Definition at line 164 of file vmsDataFile.cpp.

References m_tData, and NULL.

Referenced by CreateItem().

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]

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]

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().


Member Data Documentation

Definition at line 150 of file vmsDataFile.h.

Referenced by CreateSection(), FindItem(), LoadFromFile(), SaveToFile(), and vmsDataFile().


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

Generated on Sun May 25 00:21:21 2008 by  doxygen 1.5.6