|
Elm
2
ELM is a library providing generic data structures, OS-independent interface, plugins and XML.
|
1 #ifndef ELM_ARRAYFIELD_H
2 #define ELM_ARRAYFIELD_H
4 #include <elm/string.h>
5 #include <elm/serial2/serial.h>
10 #define ARRAYFIELD(name, size) elm::serial2::getArrayField(#name, name, size)
12 namespace elm {
namespace serial2 {
53 for (
int i = 0; i <
field.getSize(); i++) {
65 for (
int i = 0; i <
field.getSize(); i++) {
void __unserialize(Unserializer &s, const ArrayField< T > &field)
Definition: ArrayField.h:62
const elm::CString & getName() const
Definition: ArrayField.h:28
virtual void onValue(const bool &v)=0
virtual bool beginField(CString name)=0
virtual void endCompound(void *)=0
Definition: ArrayField.h:15
void __serialize(Serializer &s, const ArrayField< T > &field)
Definition: ArrayField.h:50
V & value(void) const
Definition: rtti.h:39
virtual void endField(void)=0
virtual void beginCompound(const void *object)=0
T * value() const
Definition: ArrayField.h:31
Definition: Serializer.h:36
virtual void onValue(bool &v)=0
uint64 size
Definition: arch.h:35
Serializer & operator&(Serializer &s, const ArrayField< T > &field)
Definition: ArrayField.h:74
ArrayField< T > getArrayField(elm::CString name, T *tab, int &size)
Definition: ArrayField.h:41
ArrayField(elm::CString _name, T *_tab, int &_size)
Definition: ArrayField.h:24
Field< T > field(CString name, T &value)
Definition: rtti.h:42
virtual void onItem(void)=0
Definition: Unserializer.h:15
const int & getSize() const
Definition: ArrayField.h:34
virtual void endCompound(const void *)=0
virtual void endField(void)=0
virtual bool beginCompound(void *)=0
virtual void beginField(CString name)=0