13class __declspec(dllexport) EntityFile:
public EntityBase
16 EntityFile(
ot::UID ID, EntityBase *parent, EntityObserver *obs, ModelState *ms, ClassFactoryHandler* factory,
const std::string &owner);
18 virtual bool getEntityBox(
double &_xmin,
double &_xmax,
double &_ymin,
double &_ymax,
double &_zmin,
double &_zmax)
override;
19 virtual entityType getEntityType(
void)
override {
return TOPOLOGY; };
20 virtual std::string getClassName(
void)
override {
return "EntityFile"; };
21 virtual bool updateFromProperties(
void)
override;
22 virtual void addVisualizationNodes()
override;
24 void setFileProperties(
const std::string& _path,
const std::string& _fileName,
const std::string& _fileType);
29 std::shared_ptr<EntityBinaryData> getData();
31 std::string getPath()
const {
return m_path; }
32 std::string getFileName()
const {
return m_fileName; }
33 std::string getFileType()
const {
return m_fileType; }
36 virtual void setSpecializedProperties() {};
37 virtual void AddStorageData(bsoncxx::builder::basic::document& _storage)
override;
38 virtual void readSpecificDataFromDataBase(bsoncxx::document::view& _doc_view, std::map<ot::UID, EntityBase *>& _entityMap)
override;
41 long long m_dataUID = -1;
42 long long m_dataVersion = -1;
44 std::string m_path =
"";
45 std::string m_fileName =
"";
46 std::string m_fileType =
"";
48 std::shared_ptr<EntityBinaryData> m_data =
nullptr;
50 void EnsureDataIsLoaded();
52 virtual int getSchemaVersion() {
return 1; }
unsigned long UID
Unique identifier (32 bit unsigned integer)
Definition CoreTypes.h:27