OpenClonk
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
unpack_class< T > Struct Template Reference

Static Public Member Functions

static C4PacketBaseunpack (StdCompiler *pComp)
 

Detailed Description

template<class T>
struct unpack_class< T >

Definition at line 29 of file C4Packet2.cpp.

Member Function Documentation

template<class T >
static C4PacketBase* unpack_class< T >::unpack ( StdCompiler pComp)
inlinestatic

Definition at line 31 of file C4Packet2.cpp.

References StdCompiler::isDeserializer(), and StdCompiler::Value().

32  {
33  assert(pComp->isDeserializer());
34  T *pPkt = new T();
35  try
36  {
37  pComp->Value(*pPkt);
38  }
39  catch (...)
40  {
41  delete pPkt;
42  throw;
43  }
44  return pPkt;
45  }
void Value(const T &rStruct)
Definition: StdCompiler.h:171
virtual bool isDeserializer()
Definition: StdCompiler.h:63

Here is the call graph for this function:


The documentation for this struct was generated from the following file: