OTX-Runtime for C++  
Unit.h
1 #ifndef OpenTestSystem_Otx_Runtime_Api_DataTypes_Unit_H
2 #define OpenTestSystem_Otx_Runtime_Api_DataTypes_Unit_H
3 
4 #include "Object.h"
5 
6 #include <memory>
7 
8 namespace OpenTestSystem { namespace Otx { namespace Runtime { namespace Api { namespace DataTypes {
9  class Dimension;
10 }}}}}
11 
12 namespace OpenTestSystem { namespace Otx { namespace Runtime { namespace Api {
16  namespace DataTypes {
20  class API_EXPORTS Unit : public Object
21  {
22  public:
23  Unit(
24  const std::string& id,
25  const std::string& filePath,
26  const std::string& shortName,
27  const std::string& displayName,
28  double factorSI2UNIT,
29  double offsetSI2UNIT,
30  std::shared_ptr<Dimension> dimension);
31  Unit();
32 
33  virtual ~Unit();
34 
35  std::string GetId() const;
36  std::string GetFilePath() const;
37  std::string GetShortName() const;
38  std::string GetDisplayName() const;
39  double GetFactorSI2UNIT() const;
40  double GetOffsetSI2UNIT() const;
41  std::shared_ptr<Dimension> GetDimension() const;
42 
43  std::string ToLiteralString() const override;
44  private:
45  std::string _id;
46  std::string _filePath;
47  std::string _shortName;
48  std::string _displayName;
49  double _factorSI2UNIT;
50  double _offsetSI2UNIT;
51  std::shared_ptr<Dimension> _dimension;
52  };
53  }
54 }}}}
55 #endif//OpenTestSystem_Otx_Runtime_Api_DataTypes_Unit_H
Represents base of OTX DataTypes.
Definition: Object.h:17
Represents a Unit.
Definition: Unit.h:21
std::string ToLiteralString() const override
Gets literal string.
Namespace containing all objects related to testing inside automotive industry