Gray C++ Libraries  0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
cAppConfigSection.h
Go to the documentation of this file.
1 //
4 //
5 
6 #ifndef _INC_cAppConfigSection_H
7 #define _INC_cAppConfigSection_H
8 #ifndef NO_PRAGMA_ONCE
9 #pragma once
10 #endif
11 
12 #include "cAppConfig.h"
13 #include "../Scriptable/IScriptableObj.h"
14 
15 namespace GrayLib
16 {
18 
20  : public IScriptableGetter
21  , public IScriptableSetter
22  // , public IScriptableEnumerator
23  {
27 
28  private:
29  cAppConfigX& m_Cfg;
30  cStringA m_sSection;
31  public:
32  cAppConfigSection(cAppConfigX& cfg, cStringA sSection = "");
33  virtual ~cAppConfigSection(void);
34 
35  void put_Section(cStringA sSection)
36  {
38  m_sSection = sSection;
39  }
40 
41  HRESULT ReadStrings(cArrayString<GChar_t>& log);
42  HRESULT WriteStrings( const cArrayString<GChar_t>& log);
43 
44  STDMETHOD(s_Put)(const ATOMCHAR_t* pszPropName, const cVariant& vValSet);
45  STDMETHOD(s_GetByName)(const ATOMCHAR_t* pszPropName, OUT cVariant& vValRet);
46 
48  };
49 }
50 #endif //
#define GRAYLIB_LINK
Definition: GrayLibBase.h:35
INT32 HRESULT
_WIN32 style error codes. INT32
Definition: SysTypes.h:465
Definition: cAppConfigSection.h:23
UNITTEST2_PREDEF(cAppConfigSection)
void put_Section(cStringA sSection)
Definition: cAppConfigSection.h:35
Definition: cAppConfig.h:19
Definition: cVariant.h:26
Definition: IScriptableObj.h:51
Definition: IScriptableObj.h:62
Definition: cMesh.h:22
UNITTEST2_PREDEF(cQuadtree)
char ATOMCHAR_t
the char form (UNICODE or not) for an atom. (for symbolic names)
Definition: StrConst.h:15