Gray C++ Libraries  0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
GrayLib::cAppConfigSection Class Reference

#include <cAppConfigSection.h>

Inheritance diagram for GrayLib::cAppConfigSection:
IScriptableGetter IScriptableSetter

Public Member Functions

 cAppConfigSection (cAppConfigX &cfg, cStringA sSection="")
 
virtual ~cAppConfigSection (void)
 
void put_Section (cStringA sSection)
 
HRESULT ReadStrings (cArrayString< GChar_t > &log)
 
HRESULT WriteStrings (const cArrayString< GChar_t > &log)
 
STDMETHOD() s_Put (const ATOMCHAR_t *pszPropName, const cVariant &vValSet)
 
STDMETHOD() s_GetByName (const ATOMCHAR_t *pszPropName, OUT cVariant &vValRet)
 
 UNITTEST2_PREDEF (cAppConfigSection)
 

Detailed Description

a section in the official windows app profile. via MFC CWinApp or cAppConfigX Similar to use of cIniObject/cIniMap. IIniBaseSetter, IIniBaseGetter

Constructor & Destructor Documentation

◆ cAppConfigSection()

GrayLib::cAppConfigSection::cAppConfigSection ( cAppConfigX cfg,
cStringA  sSection = "" 
)

◆ ~cAppConfigSection()

GrayLib::cAppConfigSection::~cAppConfigSection ( void  )
virtual

Member Function Documentation

◆ put_Section()

void GrayLib::cAppConfigSection::put_Section ( cStringA  sSection)
inline

Point to some other section in the Config file.

◆ ReadStrings()

HRESULT GrayLib::cAppConfigSection::ReadStrings ( cArrayString< GChar_t > &  log)

Just read the body of the section as a bunch of strings. Ignore keys.

◆ s_GetByName()

HRESULT GrayLib::cAppConfigSection::s_GetByName ( const ATOMCHAR_t pszPropName,
OUT cVariant vValRet 
)

read a key from App.INI file or registry.

Todo:
use input vValRet to suggest type. Also act as default value.

◆ s_Put()

HRESULT GrayLib::cAppConfigSection::s_Put ( const ATOMCHAR_t pszPropName,
const cVariant vValSet 
)

Write a key to App.INI file or registry

◆ UNITTEST2_PREDEF()

GrayLib::cAppConfigSection::UNITTEST2_PREDEF ( cAppConfigSection  )

◆ WriteStrings()

HRESULT GrayLib::cAppConfigSection::WriteStrings ( const cArrayString< GChar_t > &  log)

Write a bunch of strings as my section body.


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