19class __declspec(dllexport) EntityWithDynamicFields :
public EntityContainer
23 EntityWithDynamicFields(
ot::UID ID, EntityBase* parent, EntityObserver* mdl, ModelState* ms, ClassFactoryHandler* factory,
const std::string& owner);
25 void InsertInField(std::string fieldName, std::list<ot::Variable>&& values, std::string documentName =
"/");
26 void InsertInField(std::string fieldName,
const std::list<ot::Variable>& values, std::string documentName =
"/");
28 std::vector<std::string> getDocumentsNames(std::string parentDocument =
"/")
const;
29 const GenericDocument* getDocument(std::string documentName);
30 const GenericDocument* getDocumentTopLevel();
31 void ClearAllDocuments();
34 void CreatePlainDocument(std::string documentName);
35 virtual void AddStorageData(bsoncxx::builder::basic::document& storage)
override;
36 virtual void readSpecificDataFromDataBase(bsoncxx::document::view& doc_view, std::map<ot::UID, EntityBase*>& entityMap)
override;
39 std::map<std::string, GenericBsonDocument> _bsonDocumentsByName;
40 void OrderGenericDocumentsHierarchical();
41 void AddGenericDocumentToBsonDocument(
const GenericBsonDocument* genericDocument, bsoncxx::builder::basic::document& bsonDocument);
42 void ExtractElementValues(
const bsoncxx::document::element& element, std::string documentName);
Definition FixtureEntityWithDynamicFields.h:6
Definition GenericBsonDocument.h:12
unsigned long UID
Unique identifier (32 bit unsigned integer)
Definition CoreTypes.h:27