Thomas Psota | 0187a4e | 2020-04-30 15:12:54 +0200 | [diff] [blame] | 1 | #ifndef BASYX_SUBMODEL_MAP_V2_SUBMODELELEMENT_SUBMODELELEMENT_H |
| 2 | #define BASYX_SUBMODEL_MAP_V2_SUBMODELELEMENT_SUBMODELELEMENT_H |
| 3 | |
| 4 | #include <BaSyx/submodel/api_v2/submodelelement/ISubmodelElement.h> |
| 5 | |
| 6 | #include <BaSyx/submodel/map_v2/qualifier/HasDataSpecification.h> |
| 7 | #include <BaSyx/submodel/map_v2/qualifier/Referable.h> |
| 8 | #include <BaSyx/submodel/map_v2/reference/Reference.h> |
| 9 | |
| 10 | |
| 11 | namespace basyx { |
| 12 | namespace submodel { |
| 13 | namespace map { |
| 14 | |
| 15 | class SubmodelElement : |
| 16 | public virtual api::ISubmodelElement, |
| 17 | public virtual vab::ElementMap, |
| 18 | public Referable, |
| 19 | public HasDataSpecification |
| 20 | { |
| 21 | private: |
| 22 | Reference semanticId; |
| 23 | public: |
jwendelil4 | 25bb0e9 | 2020-06-15 12:09:42 +0200 | [diff] [blame] | 24 | SubmodelElement(const std::string & idShort, ModelingKind kind = ModelingKind::Instance); |
Thomas Psota | 0187a4e | 2020-04-30 15:12:54 +0200 | [diff] [blame] | 25 | |
| 26 | virtual ~SubmodelElement() = default; |
| 27 | |
| 28 | // Inherited via IHasDataSemantics |
Thomas Psota | fe6bb56 | 2020-05-14 14:41:11 +0200 | [diff] [blame] | 29 | virtual const api::IReference & getSemanticId() const override; |
Thomas Psota | 0187a4e | 2020-04-30 15:12:54 +0200 | [diff] [blame] | 30 | void setSemanticId(const api::IReference & reference); |
| 31 | |
| 32 | // Inherited via IHasKind |
jwendelil4 | 25bb0e9 | 2020-06-15 12:09:42 +0200 | [diff] [blame] | 33 | virtual ModelingKind getKind() const override; |
Thomas Psota | 0187a4e | 2020-04-30 15:12:54 +0200 | [diff] [blame] | 34 | }; |
| 35 | |
| 36 | } |
| 37 | } |
| 38 | } |
| 39 | |
| 40 | #endif /* BASYX_SUBMODEL_MAP_V2_SUBMODELELEMENT_SUBMODELELEMENT_H */ |