2#pragma warning(disable : 4251)
12class __declspec(dllexport) EntityResultTableData :
public EntityBase
15 EntityResultTableData(
ot::UID ID, EntityBase *parent, EntityObserver *obs, ModelState *ms, ClassFactoryHandler* factory,
const std::string &owner);
16 virtual ~EntityResultTableData();
18 virtual bool getEntityBox(
double &xmin,
double &xmax,
double &ymin,
double &ymax,
double &zmin,
double &zmax)
override;
20 virtual void StoreToDataBase(
void)
override;
22 virtual std::string getClassName(
void) {
return className; };
24 virtual entityType getEntityType(
void)
override {
return DATA; };
25 virtual void removeChild(EntityBase *child)
override;
27 void setNumberOfColumns(uint64_t cols);
28 void setNumberOfRows(uint64_t rows);
30 void setHeaderText(
unsigned int col,
const std::string &text);
31 void setValue(
unsigned int row,
unsigned int col, T
value);
33 void setRow(
unsigned int row, std::vector<T>&
value);
34 void setColumn(
unsigned int column, std::vector<T>&
value);
36 uint64_t getNumberOfRows(
void);
37 uint64_t getNumberOfColumns(
void);
38 std::string getHeaderText(
unsigned int col);
39 T getValue(
unsigned int row,
unsigned int col);
42 virtual int getSchemaVersion(
void) {
return 1; };
43 virtual void AddStorageData(bsoncxx::builder::basic::document &storage);
44 virtual void readSpecificDataFromDataBase(bsoncxx::document::view &doc_view, std::map<ot::UID, EntityBase *> &entityMap)
override;
46 std::string className =
"EntityResultTableData";
47 std::vector<std::string> header;
48 std::vector<std::vector<T>> data;
bsoncxx::types::value value
Definition DocumentManager.h:16
unsigned long UID
Unique identifier (32 bit unsigned integer)
Definition CoreTypes.h:27