22 #include "hurricane/DBo.h"
23 #include "hurricane/Entities.h"
24 #include "hurricane/Box.h"
43 virtual void _toJson ( JsonWriter* )
const;
44 virtual string _getString ()
const;
45 virtual Record* _getRecord ()
const;
46 Quark* _getQuark ( SharedPath* sharedPath = NULL )
const;
50 virtual void _postCreate ();
51 virtual void _preDestroy ();
58 class JsonEntity :
public JsonDBo {
60 JsonEntity (
unsigned long flags );
61 template<
typename T>
inline void update (
JsonStack&, T );
65 template<
typename T>
inline void JsonEntity::update ( JsonStack& stack, T hobject )
67 unsigned int jsonId = get<int64_t>(stack,
"_id");
69 JsonDBo::update<T>( stack, hobject );
70 stack.addEntity( jsonId, hobject );
77 class JsonEntityRef :
public JsonObject {
79 static void initialize ();
80 JsonEntityRef (
unsigned long flags );
81 virtual string getTypeName ()
const;
82 virtual JsonEntityRef* clone (
unsigned long )
const;
83 virtual void toData ( JsonStack& );
Box description (API)
Definition: Box.h:31
The model (API).
Definition: Cell.h:64
DataBase object root class (API).
Definition: DBo.h:45
Occurrenceable objects root class (API).
Definition: Entity.h:37
virtual Cell * getCell() const =0
virtual Box getBoundingBox() const =0
JSON Parser Stack.
Definition: JsonObject.h:249
Quark description (API)
Definition: Quark.h:35
The namespace dedicated to Hurricane.
Definition: Generalities.dox:5