![]() |
Gray C++ Libraries
0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
|
#include <cIniObject.h>
Public Member Functions | |
cIniObject () | |
virtual | ~cIniObject () |
void | SetAllDirty () |
virtual HRESULT | PropSet (const IniChar_t *pszPropTag, const IniChar_t *pszValue) override |
virtual HRESULT | PropGet (const IniChar_t *pszPropTag, OUT cStringI &rsValue) const override |
HRESULT | FileWriteN (cStreamOutput &sOut, IPROPIDX_t ePropIdx) const |
HRESULT | FileWrite (cStreamOutput &sOut, const IniChar_t *pszProp) |
HRESULT | FileWriteAll (cStreamOutput &sOut) |
![]() | |
virtual IPROPIDX_t | get_PropQty () const =0 |
virtual const IniChar_t * | get_PropName (IPROPIDX_t ePropIdx) const =0 |
virtual IPROPIDX_t | FindProp (const IniChar_t *pszPropTag) const =0 |
![]() | |
virtual HRESULT | PropSetN (IPROPIDX_t ePropIdx, const IniChar_t *pszValue)=0 |
![]() | |
virtual HRESULT | PropEnum (IPROPIDX_t ePropIdx, OUT cStringI &rsValue, cStringI *psPropTag=nullptr) const =0 |
Static Public Member Functions | |
static PROPMASK_t | GetDirtyMask (IPROPIDX_t ePropIdx) |
Public Attributes | |
PROPMASK_t | m_nDirtyMask |
bitmask of IPROPIDX_t to be written/persisted. More... | |
Friends | |
class | cIniObjectTests |
Base class for generic object with predefined/known props (Unlike cIniSection) read/written via interfaces. can be stored as cIniSectionData. Also like cIniMap Much more simplistic form of IScriptableObj.
|
inline |
|
inlinevirtual |
HRESULT Gray::cIniObject::FileWrite | ( | cStreamOutput & | sOut, |
const IniChar_t * | pszProp | ||
) |
write this prop by name.
HRESULT Gray::cIniObject::FileWriteAll | ( | cStreamOutput & | sOut | ) |
Write out all that are not already written. Assume [HEADER] already written.
HRESULT Gray::cIniObject::FileWriteN | ( | cStreamOutput & | sOut, |
IPROPIDX_t | ePropIdx | ||
) | const |
Write the prop out to the stream. cStreamOutput
|
inlinestatic |
ASSUME get_PropQty() <= bits in PROPMASK_t, like _1BITMASK()
|
overridevirtual |
IIniBaseGetter Read a prop by its string name. default implementation.
Implements Gray::IIniBaseGetter.
|
overridevirtual |
IIniBaseSetter Set a prop by its string name. default implementation.
Implements Gray::IIniBaseSetter.
|
inline |
ASSUME get_PropQty() <= bits in PROPMASK_t
|
friend |
|
mutable |
bitmask of IPROPIDX_t to be written/persisted.