10class __declspec(dllexport) GenericDocument
13 const std::string getDocumentName()
const {
return _documentName; }
14 const std::vector<const GenericDocument *> getSubDocuments()
const {
return _subDocuments; }
15 void setDocumentName(std::string documentName) { _documentName = documentName; };
16 const std::map<std::string, std::list<ot::Variable>>* getFields()
const {
return &_fields; };
18 void AddSubDocument(GenericDocument* subDocument) { _subDocuments.push_back(subDocument); };
20 void InsertInDocumentField(
const std::string& fieldName,
const std::list<ot::Variable>& values);
21 void InsertInDocumentField(
const std::string& fieldName, std::list<ot::Variable>&& values);
25 std::map<std::string, std::list<ot::Variable>> _fields;
26 std::string _documentName;
27 std::vector<const GenericDocument*> _subDocuments;
29 virtual void CheckForIlligalName(std::string fieldName) {};