2#pragma warning(disable : 4251)
9class __declspec(dllexport) EntityParameter :
public EntityBase
12 EntityParameter(
ot::UID ID, EntityBase *parent, EntityObserver *mdl, ModelState *ms, ClassFactoryHandler* factory,
const std::string &owner);
13 virtual ~EntityParameter();
15 virtual bool getEntityBox(
double &xmin,
double &xmax,
double &ymin,
double &ymax,
double &zmin,
double &zmax)
override;
17 void setValue(
const std::string &
value);
18 std::string getValue(
void);
20 double getNumericValue(
void);
22 void createProperties(
void);
24 virtual void addVisualizationNodes(
void)
override;
26 virtual std::string getClassName(
void) {
return "EntityParameter"; };
28 void addVisualizationItem(
bool isHidden);
30 virtual entityType getEntityType(
void)
override {
return TOPOLOGY; };
32 virtual bool updateFromProperties(
void)
override;
34 void addDependency(
ot::UID entityID,
const std::string &propertyName,
const std::string& propertyGroup);
35 void addDependencyByIndex(
ot::UID entityID,
const std::string& propertyIndex);
36 void removeDependency(
ot::UID entityID,
const std::string &propertyName,
const std::string& propertyGroup);
37 void removeDependency(
ot::UID entityID);
38 bool hasDependency(
ot::UID entityID);
39 void removeAllDependencies(
void);
41 std::map<ot::UID, std::map<std::string, bool>> getDependencies(
void) {
return dependencyMap; }
44 virtual int getSchemaVersion(
void) {
return 1; };
45 virtual void AddStorageData(bsoncxx::builder::basic::document &storage);
46 virtual void readSpecificDataFromDataBase(bsoncxx::document::view &doc_view, std::map<ot::UID, EntityBase *> &entityMap)
override;
48 std::map<ot::UID, std::map<std::string, bool>> dependencyMap;
bsoncxx::types::value value
Definition DocumentManager.h:16
unsigned long UID
Unique identifier (32 bit unsigned integer)
Definition CoreTypes.h:27