OTX-Runtime for C++  
PrimitiveDataType.h
1 #ifndef OpenTestSystem_Otx_Runtime_Api_DataTypes_SimpleTypes_H
2 #define OpenTestSystem_Otx_Runtime_Api_DataTypes_SimpleTypes_H
3 #include "Object.h"
4 namespace OpenTestSystem { namespace Otx { namespace Runtime { namespace Api {
5 
9 namespace DataTypes {
10 
14 class API_EXPORTS Integer : public Object
15 {
16 private:
17  const long long _value;
18 public:
23  Integer(long long value);
24 
29  std::string ToLiteralString() const;
30 
35  long long GetPrimitive();
36 };
37 
41 class API_EXPORTS Float : public Object
42 {
43 private:
44  const double _value;
45 public:
50  Float(double value);
51 
56  std::string ToLiteralString() const;
57 
62  double GetPrimitive();
63 };
64 
68 class API_EXPORTS String : public Object
69 {
70 private:
71  const std::string _value;
72 public:
77  String(std::string value);
78 
83  std::string ToLiteralString() const;
84 
89  std::string GetPrimitive();
90 };
91 
95 class API_EXPORTS Boolean : public Object
96 {
97 private:
98  const bool _value;
99 public:
104  Boolean(bool value);
105 
110  std::string ToLiteralString() const;
111 
116  bool GetPrimitive();
117 };
118 
119 }}}}}
120 #endif
Represents OTX Boolean DataType.
Definition: PrimitiveDataType.h:96
Boolean(bool value)
Initializes a new instance of the Boolean class.
std::string ToLiteralString() const
Gets literal string.
Represents OTX Float DataType.
Definition: PrimitiveDataType.h:42
Float(double value)
Initializes a new instance of the Float class.
std::string ToLiteralString() const
Gets literal string.
Represents OTX Integer DataType.
Definition: PrimitiveDataType.h:15
Integer(long long value)
Initializes a new instance of the Integer class.
std::string ToLiteralString() const
Gets literal string.
long long GetPrimitive()
Gets primitive value.
Represents base of OTX DataTypes.
Definition: Object.h:17
Represents OTX String DataType.
Definition: PrimitiveDataType.h:69
std::string ToLiteralString() const
Gets literal string.
String(std::string value)
Initializes a new instance of the String class.
std::string GetPrimitive()
Gets primitive value.
Namespace containing all objects related to testing inside automotive industry