|
Elm
2
ELM is a library providing generic data structures, OS-independent interface, plugins and XML.
|
21 #ifndef ELM_SERIAL2_XOM_SERIALIZER_H
22 #define ELM_SERIAL2_XOM_SERIALIZER_H
24 #include <elm/data/HashMap.h>
25 #include <elm/data/Vector.h>
26 #include <elm/data/VectorQueue.h>
27 #include <elm/serial2/Serializer.h>
28 #include <elm/util/Pair.h>
29 #include <elm/sys/Path.h>
52 virtual void flush(
void);
61 virtual void onValue(
const bool& v);
62 virtual void onValue(
const signed int& v);
63 virtual void onValue(
const unsigned int& v);
64 virtual void onValue(
const char& v);
65 virtual void onValue(
const signed char& v);
66 virtual void onValue(
const unsigned char& v);
67 virtual void onValue(
const signed short& v);
68 virtual void onValue(
const unsigned short& v);
69 virtual void onValue(
const signed long& v);
70 virtual void onValue(
const unsigned long& v);
71 virtual void onValue(
const signed long long& v);
72 virtual void onValue(
const unsigned long long& v);
73 virtual void onValue(
const float& v);
74 virtual void onValue(
const double& v);
75 virtual void onValue(
const long double& v);
78 virtual void onItem (
void);
86 typedef struct context_t {
94 int refGet(
const void*
object) {
95 if (!idmap.
hasKey(
object)) {
96 idmap.
put(
object, ref_current);
99 return idmap.
get(
object, -1);
102 ExternalSolver *_solver;
119 #endif // ELM_SERIAL2_XOM_SERIALIZER_H
virtual void flush(void)
Definition: serial2_XOMSerializer.cpp:90
void put(const K &key, const T &val)
Definition: HashMap.h:133
XOMSerializer(const sys::Path &path)
Definition: serial2_XOMSerializer.cpp:401
Definition: VectorQueue.h:31
Option< T > get(const K &k) const
Definition: HashMap.h:55
virtual void endCompound(const void *)
Definition: serial2_XOMSerializer.cpp:207
Definition: XOMSerializer.h:44
~XOMSerializer(void)
Definition: serial2_XOMSerializer.cpp:419
virtual void onItem(void)
Definition: serial2_XOMSerializer.cpp:239
virtual void endObject(const rtti::Type &clazz, const void *object)
Definition: serial2_XOMSerializer.cpp:149
void setSolver(ExternalSolver &solver)
Definition: XOMSerializer.h:49
Definition: Serializer.h:36
bool hasKey(const K &k) const
Definition: HashMap.h:59
ExternalSolver & solver(void) const
Definition: XOMSerializer.h:48
Definition: XOMSerializer.h:106
Definition: Document.h:20
virtual void onValue(const bool &v)
Definition: serial2_XOMSerializer.cpp:221
virtual ~XOMElementSerializer(void)
Definition: serial2_XOMSerializer.cpp:83
XOMElementSerializer(xom::Element *top)
Definition: serial2_XOMSerializer.cpp:75
virtual void onPointer(const rtti::Type &clazz, const void *object)
Definition: serial2_XOMSerializer.cpp:173
virtual void beginObject(const rtti::Type &clazz, const void *object)
Definition: serial2_XOMSerializer.cpp:106
virtual void endField(void)
Definition: serial2_XOMSerializer.cpp:166
virtual void beginField(CString name)
Definition: serial2_XOMSerializer.cpp:156
virtual void onEnum(const void *address, int value, const rtti::Type &clazz)
Definition: serial2_XOMSerializer.cpp:214
Definition: Attribute.h:30
virtual void beginCompound(const void *)
Definition: serial2_XOMSerializer.cpp:191