Gray C++ Libraries  0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
cIniBase.h
Go to the documentation of this file.
1 //
4 //
5 #ifndef _INC_cIniBase_H
6 #define _INC_cIniBase_H
7 #ifndef NO_PRAGMA_ONCE
8 #pragma once
9 #endif
10 
11 #include "HResult.h"
12 #include "cString.h"
13 
14 namespace Gray
15 {
16  typedef int IPROPIDX_t;
17  typedef char IniChar_t;
19 
21  {
25  virtual HRESULT PropSet(const IniChar_t* pszPropTag, const IniChar_t* pszValue) = 0;
26  };
28  {
32  virtual HRESULT PropGet(const IniChar_t* pszPropTag, OUT cStringI& rsValue) const = 0;
33  };
35  {
39  virtual HRESULT PropEnum(IPROPIDX_t ePropIdx, OUT cStringI& rsValue, cStringI* psPropTag = nullptr) const = 0;
40  };
41 }
42 
43 #endif
#define IGNORE_WARN_INTERFACE(c)
Definition: GrayCore.h:79
INT32 HRESULT
_WIN32 style error codes. INT32
Definition: SysTypes.h:465
< The main namespace for all Core functions.
Definition: GrayCore.cpp:14
DECLARE_INTERFACE(IRandomNoise)
char IniChar_t
char format even on UNICODE system! Screw M$, INI files should ALWAYS have UTF8 contents
Definition: cIniBase.h:17
int IPROPIDX_t
enumerate known properties for some interface/object/class. similar to SCRIPTPROPID_t
Definition: cIniBase.h:16
cStringT< IniChar_t > cStringI
A .INI file string.
Definition: cIniBase.h:18
Definition: cIniBase.h:35
virtual HRESULT PropEnum(IPROPIDX_t ePropIdx, OUT cStringI &rsValue, cStringI *psPropTag=nullptr) const =0
Definition: cIniBase.h:28
virtual HRESULT PropGet(const IniChar_t *pszPropTag, OUT cStringI &rsValue) const =0
Definition: cIniBase.h:21
virtual HRESULT PropSet(const IniChar_t *pszPropTag, const IniChar_t *pszValue)=0