25#include <ArmarXCore/interface/observers/Serialization.h>
27#include <MemoryX/interface/components/CommonStorageInterface.h>
44 bool useMongoObjectIds =
false);
51 DBStorableData
serialize(
const armarx::SerializablePtr& obj,
52 const ::Ice::Current& = Ice::emptyCurrent)
override;
57 const armarx::SerializablePtr& obj,
58 const ::Ice::Current& = Ice::emptyCurrent)
override;
66 const ::Ice::Current& = Ice::emptyCurrent);
72 const ::Ice::Current& = Ice::emptyCurrent);
The JSONObject class is used to represent and (de)serialize JSON objects.
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.
MongoSerializer(const Ice::CommunicatorPtr ic=Ice::CommunicatorPtr(), bool useMongoObjectIds=false)
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...
DBStorableData serializeIceObject(const armarx::SerializablePtr &obj, const ::Ice::Current &=Ice::emptyCurrent)
Serialize an Ice object passed in the obj parameter.
~MongoSerializer() override
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<::Ice::Communicator > CommunicatorPtr
This file offers overloads of toIce() and fromIce() functions for STL container types.
IceInternal::Handle< JSONObject > JSONObjectPtr
IceUtil::Handle< MongoSerializer > MongoSerializerPtr