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 28 of file C4Packet2.cpp.

Member Function Documentation

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

Definition at line 30 of file C4Packet2.cpp.

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

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

Here is the call graph for this function:


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