1 #ifndef OpenTestSystem_Otx_Runtime_Api_DataTypes_Quantity_H
2 #define OpenTestSystem_Otx_Runtime_Api_DataTypes_Quantity_H
8 namespace OpenTestSystem {
namespace Otx {
namespace Runtime {
namespace Api {
namespace DataTypes {
12 namespace OpenTestSystem {
namespace Otx {
namespace Runtime {
namespace Api {
27 std::shared_ptr<Unit> displayUnit,
28 bool hasDisplayPrecision,
29 int displayPrecision);
33 double GetValue()
const;
34 std::shared_ptr<Unit> GetDisplayUnit()
const;
35 bool HasDisplayPrecision()
const;
36 int GetDisplayPrecision()
const;
40 static bool LessThanOrEqual(std::shared_ptr<Quantity> q1, std::shared_ptr<Quantity> q2);
43 std::shared_ptr<Unit> _displayUnit;
44 bool _hasDisplayPrecision;
45 int _displayPrecision;
46 double GetBaseValue();
47 static std::shared_ptr<Unit> GetUnitForMathematicOperators(std::shared_ptr<Unit> unit1, std::shared_ptr<Unit> unit2);
Represents base of OTX DataTypes.
Definition: Object.h:17
Represents a Quantity.
Definition: Quantity.h:21
std::string ToLiteralString() const override
Gets literal string.
Namespace containing all objects related to testing inside automotive industry