blob: 379b75ce55b2d835d6845e153c45216e4df91e9c [file] [log] [blame]
Constantin Ziesche02817f12020-08-04 21:40:43 +02001#ifndef BASYX_SIMPLE_SDK_DATASPECIFICATIONPHYSICALUNIT_H
2#define BASYX_SIMPLE_SDK_DATASPECIFICATIONPHYSICALUNIT_H
3
4#include <BaSyx/submodel/api_v2/dataspecification/IDataSpecificationPhysicalUnit.h>
5#include <BaSyx/submodel/simple/common/LangStringSet.h>
6
7#include <BaSyx/vab/ElementMap.h>
8
9namespace basyx {
10namespace submodel {
11namespace simple {
12
13class DataSpecificationPhysicalUnit
14 : public api::IDataSpecificationPhysicalUnit
15{
16private:
17 LangStringSet definition;
18 std::string unitName;
19 std::string unitSymbol;
20 std::string siNotation;
21 std::string siName;
22 std::string dinNotation;
23 std::string eceName;
24 std::string eceCode;
25 std::string nistName;
26 std::string sourceOfDefinition;
27 std::string conversionFactor;
28 std::string registrationAuthorityId;
29 std::string supplier;
30
31public:
32 DataSpecificationPhysicalUnit(const std::string & unitName, const std::string & unitSymbol, const api::ILangStringSet & definition);
33
34 const std::string & getUnitName() const override;
35 void setUnitName(const std::string & unitName) override;
36
37 const std::string & getUnitSymbol() const override;
38 void setUnitSymbol(const std::string & unitSymbol) override;
39
40 LangStringSet & getDefinition() override;
41 void setDefinition(const api::ILangStringSet & definition) override;
42
43 const std::string * getSiNotation() const override;
44 void setSiNotation(const std::string & siNotation) override;
45
46 const std::string * getSiName() const override;
47 void setSiName(const std::string & siName) override;
48
49 const std::string * getDinNotation() const override;
50 void setDinNotation(const std::string & dinNotation) override;
51
52 const std::string * getEceName() const override;
53 void setEceName(const std::string & eceName) override;
54
55 const std::string * getEceCode() const override;
56 void setEceCode(const std::string & eceCode) override;
57
58 const std::string * getNistName() const override;
59 void setNistName(const std::string & nistName) override;
60
61 const std::string * getSourceOfDefinition() const override;
62 void setSourceOfDefinition(const std::string & sourceOfDefinition) override;
63
64 const std::string * getConversionFactor() const override;
65 void setConversionFactor(const std::string & conversionFactor) override;
66
67 const std::string * getRegistrationAuthorityId() const override;
68 void setRegistrationAuthorityId(const std::string & registrationAuthorityId) override;
69
70 const std::string * getSupplier() const override;
71 void setSupplier(const std::string & supplier) override;
72
73};
74
75}
76}
77}
78#endif //BASYX_SIMPLE_SDK_DATASPECIFICATIONPHYSICALUNIT_H