OpenTwin 0.1
OpenTwin
 
Loading...
Searching...
No Matches
EntityMetadataSeries.h
Go to the documentation of this file.
1#pragma once
3
4
5class __declspec(dllexport) EntityMetadataSeries : public EntityWithDynamicFields
6{
7public:
8 EntityMetadataSeries(ot::UID ID, EntityBase* parent, EntityObserver* mdl, ModelState* ms, ClassFactoryHandler* factory, const std::string& owner);
9 std::string getClassName() override { return "EntityMetadataSeries"; };
10 virtual entityType getEntityType(void) override { return TOPOLOGY; };
11 virtual bool getEntityBox(double& xmin, double& xmax, double& ymin, double& ymax, double& zmin, double& zmax) override;
12 virtual void addVisualizationNodes() override;
13
14 std::vector<std::string> getAllParameterDocumentNames();
15 std::vector<std::string> getAllQuantityDocumentNames();
16 const std::string getParameterDocumentName() const { return _parameterDocument; }
17 const std::string getQuantityDocumentName() const { return _quantityDocument; }
18
19 void InsertToParameterField(std::string fieldName, std::list<ot::Variable>&& values, std::string documentName = "");
20 void InsertToQuantityField(std::string fieldName, std::list<ot::Variable>&& values, std::string documentName = "");
21private:
22 const std::string _parameterDocument = "Parameter";
23 const std::string _quantityDocument = "Quantity";
24};
Abstract class that allows assembling fields and subdocuments of the entity during runtime.
unsigned long UID
Unique identifier (32 bit unsigned integer)
Definition CoreTypes.h:27