Gray C++ Libraries  0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
cArchive.h File Reference
#include "cStream.h"
#include "cUnitTestDecl.h"
#include "cTypes.tbl"

Go to the source code of this file.

Classes

class  Gray::cArchive
 

Namespaces

 Gray
 < The main namespace for all Core functions.
 

Macros

#define CTYPE_DEF(a, _TYPE, c, d, e, f, g, h)
 
#define DECLARE_SERIAL(class_name)   friend CArchive& GRAYCALL operator>>(CArchive& ar, class_name* &pOb);
 
#define IMPLEMENT_SERIAL(class_name, base_name, quant)
 

Typedefs

typedef Gray::cArchive CArchive
 

Detailed Description

Macro Definition Documentation

◆ CTYPE_DEF

#define CTYPE_DEF (   a,
  _TYPE,
  c,
  d,
  e,
  f,
  g,
 
)
Value:
HRESULT Serialize( _TYPE& Val ) { return Serialize(&Val,sizeof(Val)); } \
cArchive& operator << (const _TYPE& Val) { Write(&Val,sizeof(Val)); return *this; } \
cArchive& operator >> (_TYPE& Val) { Read(&Val,sizeof(Val)); return *this; }
INT32 HRESULT
_WIN32 style error codes. INT32
Definition: SysTypes.h:465
void operator>>(cArchive &ar, cStringT< _TYPE_CH > &pOb)
Definition: cString.h:678
void operator<<(cArchive &ar, const cStringT< _TYPE_CH > &pOb)
Definition: cString.h:680

◆ DECLARE_SERIAL

#define DECLARE_SERIAL (   class_name)    friend CArchive& GRAYCALL operator>>(CArchive& ar, class_name* &pOb);

◆ IMPLEMENT_SERIAL

#define IMPLEMENT_SERIAL (   class_name,
  base_name,
  quant 
)

Typedef Documentation

◆ CArchive