Go to the documentation of this file.
25 #include <ArmarXCore/interface/observers/Serialization.h>
27 #include <MemoryX/interface/components/CommonStorageInterface.h>
37 class MongoSerializer;
41 public DBSerializerBase
51 DBStorableData
serialize(
const armarx::SerializablePtr& obj, const ::Ice::Current& = Ice::emptyCurrent)
override;
55 void deserialize(
const DBStorableData& objData,
const armarx::SerializablePtr& obj, const ::Ice::Current& = Ice::emptyCurrent)
override;
62 DBStorableData
serializeIceObject(
const armarx::SerializablePtr& obj, const ::Ice::Current& = Ice::emptyCurrent);
67 armarx::SerializablePtr
deserializeIceObject(
const DBStorableData& objData, const ::Ice::Current& = Ice::emptyCurrent);
DBStorableData serialize(const armarx::SerializablePtr &obj, const ::Ice::Current &=Ice::emptyCurrent) override
Takes a SerializablePtr and transforms it into a JSON object using the JSONObject serialization mecha...
MongoSerializer(const Ice::CommunicatorPtr ic=Ice::CommunicatorPtr(), bool useMongoObjectIds=false)
armarx::SerializablePtr deserializeIceObject(const DBStorableData &objData, const ::Ice::Current &=Ice::emptyCurrent)
Deserializes the objData DBStorableData object into an instance of Serializable and returns it.
IceInternal::Handle< JSONObject > JSONObjectPtr
~MongoSerializer() override
IceUtil::Handle< MongoSerializer > MongoSerializerPtr
void deserialize(const DBStorableData &objData, const armarx::SerializablePtr &obj, const ::Ice::Current &=Ice::emptyCurrent) override
Uses the JSON content of DBStorableDate objData and deserializes it into the obj pointer.
DBStorableData serializeIceObject(const armarx::SerializablePtr &obj, const ::Ice::Current &=Ice::emptyCurrent)
Serialize an Ice object passed in the obj parameter.
This file offers overloads of toIce() and fromIce() functions for STL container types.