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

#include <cIniSection.h>

Inheritance diagram for Gray::cIniWriter:
GrayLib::cScriptFileWriter

Public Member Functions

 cIniWriter (cStreamOutput *pOut)
 
HRESULT WriteSectionHead0 (const IniChar_t *pszSectionData)
 
HRESULT WriteSectionHead1 (const IniChar_t *pszSectionType, const IniChar_t *pszSectionName)
 
HRESULT WriteSectionHead1Q (const IniChar_t *pszSection, const IniChar_t *pszArg)
 
HRESULT _cdecl WriteSectionHeadFormat (const IniChar_t *pszSectionType, const IniChar_t *pszArgFormat,...)
 
HRESULT WriteKeyUnk (const IniChar_t *pszKey, const IniChar_t *pszData)
 
HRESULT WriteKeyStrQ (const IniChar_t *pszKey, const IniChar_t *pszVal)
 
HRESULT WriteKeyInt (const IniChar_t *pszKey, int nVal)
 
HRESULT WriteKeyUInt (const IniChar_t *pszKey, UINT nVal)
 

Protected Attributes

cStreamOutputm_pOut
 write out to this stream. More...
 
bool m_bStartedSection
 Must write a newline to close the previous section when we start a new one. More...
 

Detailed Description

Helper for writing an INI file/stream. similar to IScriptableSetter

Constructor & Destructor Documentation

◆ cIniWriter()

Gray::cIniWriter::cIniWriter ( cStreamOutput pOut)
inline

Member Function Documentation

◆ WriteKeyInt()

HRESULT Gray::cIniWriter::WriteKeyInt ( const IniChar_t pszKey,
int  nVal 
)

◆ WriteKeyStrQ()

HRESULT Gray::cIniWriter::WriteKeyStrQ ( const IniChar_t pszKey,
const IniChar_t pszVal 
)

Write a quoted/escaped string.

◆ WriteKeyUInt()

HRESULT Gray::cIniWriter::WriteKeyUInt ( const IniChar_t pszKey,
UINT  nVal 
)

◆ WriteKeyUnk()

HRESULT Gray::cIniWriter::WriteKeyUnk ( const IniChar_t pszKey,
const IniChar_t pszData 
)

Write raw/naked string value to file.

◆ WriteSectionHead0()

HRESULT Gray::cIniWriter::WriteSectionHead0 ( const IniChar_t pszSectionData)

Write Raw section header data. Write a section header with no arguments. pszSectionTitle = "SECTIONTYPE SECTIONNAME"

◆ WriteSectionHead1()

HRESULT Gray::cIniWriter::WriteSectionHead1 ( const IniChar_t pszSectionType,
const IniChar_t pszSectionName 
)

Write a section header with a raw (NOT quoted) argument.

◆ WriteSectionHead1Q()

HRESULT Gray::cIniWriter::WriteSectionHead1Q ( const IniChar_t pszSection,
const IniChar_t pszArg 
)

Write a section header with a quoted/escaped argument.

◆ WriteSectionHeadFormat()

HRESULT _cdecl Gray::cIniWriter::WriteSectionHeadFormat ( const IniChar_t pszSectionType,
const IniChar_t pszArgFormat,
  ... 
)

Write out the section header.

Member Data Documentation

◆ m_bStartedSection

bool Gray::cIniWriter::m_bStartedSection
protected

Must write a newline to close the previous section when we start a new one.

◆ m_pOut

cStreamOutput* Gray::cIniWriter::m_pOut
protected

write out to this stream.


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