Gray C++ Libraries  0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
cJSONWriter.h
Go to the documentation of this file.
1 //
5 #ifndef _INC_cJSONWriter_H
6 #define _INC_cJSONWriter_H
7 #ifndef NO_PRAGMA_ONCE
8 #pragma once
9 #endif
10 
11 #include "cJSON.h"
14 
15 namespace GrayLib
16 {
19  class GRAYLIB_LINK cVariant;
20 
22  {
26 
27  protected:
28  static HRESULT GRAYCALL WriteIndent(cStreamOutput* pOut, int iIndent);
29 
30  static HRESULT GRAYCALL WriteStr(cStreamOutput* pOut, cStringA s );
31  static HRESULT GRAYCALL WriteArray(cStreamOutput* pOut, const cVariantArray& rArray, int iIndent);
32  static HRESULT GRAYCALL WriteMap(cStreamOutput* pOut, const cVariantMap* pMap, int iIndent);
33 
34  public:
35  static HRESULT GRAYCALL WriteVar(cStreamOutput* pOut, const cVariant& rVar, int iIndent=0);
36  static HRESULT GRAYCALL WriteVarToStr(OUT cJSONString& rsOut, const cVariant& rVar);
37  };
38 
39 }
40 
41 #endif
#define GRAYCALL
declare calling convention for static functions so everyone knows the arg passing scheme....
Definition: GrayCore.h:36
#define GRAYLIB_LINK
Definition: GrayLibBase.h:35
INT32 HRESULT
_WIN32 style error codes. INT32
Definition: SysTypes.h:465
Definition: cJSONWriter.h:22
Definition: cJSON.h:23
Definition: cVariantData.h:56
Definition: cVarMap.h:248
Definition: cVariant.h:26
Definition: cStream.h:126
Definition: cMesh.h:22