|
Elm
2
ELM is a library providing generic data structures, OS-independent interface, plugins and XML.
|
21 #ifndef ELM_SERIAL2_DATA_H_
22 #define ELM_SERIAL2_DATA_H_
24 #include <elm/assert.h>
25 #include <elm/serial2/serial.h>
29 template <
class T,
class E,
class A>
class Vector;
33 template <
class C,
class T>
46 C &coll = *
static_cast<C *
>(object);
49 for (
int i = 0; i < cnt; i++) {
57 const C &coll = *
static_cast<const C *
>(object);
70 template <
class C,
class T>
void __unserialize(Unserializer &s, const ArrayField< T > &field)
Definition: ArrayField.h:62
Definition: util_WAHVector.cpp:157
static void unserialize(Unserializer &s, C &v)
Definition: data.h:67
void iter(const C &c, const F &f)
Definition: util.h:95
virtual void endCompound(void *)=0
virtual bool nextItem(void)=0
void __serialize(Serializer &s, const ArrayField< T > &field)
Definition: ArrayField.h:50
virtual void * instantiate(void) const
Definition: data.h:43
Type(string name="")
Definition: rtti.cpp:299
virtual void beginCompound(const void *object)=0
virtual void serialize(Serializer &serializer, const void *object)
Definition: data.h:56
Definition: Serializer.h:36
Definition: collections.h:16
virtual void onItem(void)=0
Definition: Unserializer.h:15
static void serialize(Serializer &s, const C &v)
Definition: data.h:66
static DataSerializer __type
Definition: data.h:37
virtual void unserialize(Unserializer &unserializer, void *object)
Definition: data.h:45
virtual void endCompound(const void *)=0
DataSerializer(void)
Definition: data.h:42
static rtti::Type & type(void)
Definition: data.h:39
virtual bool beginCompound(void *)=0
static rtti::Type & type(const C &v)
Definition: data.h:40
virtual int countItems(void)=0