40 useMongoIds(useMongoObjectIds)
51 DBStorableData result;
54 obj->serialize(serializer);
57 serializeMongoId(serializer);
59 result.JSON = serializer->toString();
67 deserializer->reset();
68 deserializer->fromString(objData.JSON);
71 deserializeMongoId(deserializer);
75 obj->deserialize(deserializer);
81 DBStorableData result;
84 serializer->serializeIceObject(obj);
87 serializeMongoId(serializer);
89 result.JSON = serializer->toString();
95 if (objData.JSON.empty())
97 return armarx::SerializablePtr();
101 deserializer->reset();
102 deserializer->fromString(objData.JSON);
105 deserializeMongoId(deserializer);
107 return deserializer->deserializeIceObject();
112 if (useMongoIds && serializer->hasElement(serializer->getIdField()))
115 idElem->setString(
"$oid", serializer->getStringId());