#include <MemoryX/core/MongoSerializer.h>
|
| 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.
|
| |
| armarx::SerializablePtr | deserializeIceObject (const DBStorableData &objData, const ::Ice::Current &=Ice::emptyCurrent) |
| | Deserializes the objData DBStorableData object into an instance of Serializable and returns it.
|
| |
| | 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 mechanism.
|
| |
| DBStorableData | serializeIceObject (const armarx::SerializablePtr &obj, const ::Ice::Current &=Ice::emptyCurrent) |
| | Serialize an Ice object passed in the obj parameter.
|
| |
| | ~MongoSerializer () override |
| |
◆ MongoSerializer()
◆ ~MongoSerializer()
◆ deserialize()
| void deserialize |
( |
const DBStorableData & | objData, |
|
|
const armarx::SerializablePtr & | obj, |
|
|
const ::Ice::Current & | c = Ice::emptyCurrent ) |
|
override |
Uses the JSON content of DBStorableDate objData and deserializes it into the obj pointer.
◆ deserializeIceObject()
| armarx::SerializablePtr deserializeIceObject |
( |
const DBStorableData & | objData, |
|
|
const ::Ice::Current & | = Ice::emptyCurrent ) |
Deserializes the objData DBStorableData object into an instance of Serializable and returns it.
◆ serialize()
| DBStorableData serialize |
( |
const armarx::SerializablePtr & | obj, |
|
|
const ::Ice::Current & | c = Ice::emptyCurrent ) |
|
override |
Takes a SerializablePtr and transforms it into a JSON object using the JSONObject serialization mechanism.
The result is returned in a new DBStorableData which contains the result in its JSON field.
◆ serializeIceObject()
| DBStorableData serializeIceObject |
( |
const armarx::SerializablePtr & | obj, |
|
|
const ::Ice::Current & | = Ice::emptyCurrent ) |
Serialize an Ice object passed in the obj parameter.
The result is stored in the JSON field of a new DBStorableData instance and returned.
The documentation for this class was generated from the following files: