2#pragma warning(disable : 4251)
10class __declspec(dllexport) EntityBinaryData :
public EntityBase
13 EntityBinaryData(
ot::UID ID, EntityBase *parent, EntityObserver *obs, ModelState *ms, ClassFactoryHandler* factory,
const std::string &owner);
14 virtual ~EntityBinaryData();
16 virtual bool getEntityBox(
double &xmin,
double &xmax,
double &ymin,
double &ymax,
double &zmin,
double &zmax)
override;
18 virtual std::string getClassName(
void) {
return "EntityBinaryData"; };
20 virtual entityType getEntityType(
void)
override {
return DATA; };
21 virtual void removeChild(EntityBase *child)
override;
23 void setData(
const char *dat,
size_t length);
27 const std::vector<char>& getData(
void)
const;
30 virtual int getSchemaVersion(
void) {
return 1; };
31 virtual void AddStorageData(bsoncxx::builder::basic::document &storage);
32 virtual void readSpecificDataFromDataBase(bsoncxx::document::view &doc_view, std::map<ot::UID, EntityBase *> &entityMap)
override;
34 std::vector<char> data;
unsigned long UID
Unique identifier (32 bit unsigned integer)
Definition CoreTypes.h:27