OTX-Runtime for C++  
ByteField.h
1 #ifndef OpenTestSystem_Otx_Runtime_Api_DataTypes_ByteField_H
2 #define OpenTestSystem_Otx_Runtime_Api_DataTypes_ByteField_H
3 #include "Object.h"
4 namespace OpenTestSystem { namespace Otx { namespace Runtime { namespace Api { namespace DataTypes {
8  class API_EXPORTS ByteField : public Object
9  {
10  private:
11  std::string _hexString;
12  public:
17  ByteField(std::string hexString);
18 
23  std::string ToLiteralString() const;
24 
29  std::string GetHexString() const;
30 
35  std::string GetBytes() const;
36 
42  void FromBytes(const char *byteValue, int length);
43  };
44 };
45 }}}}
46 #endif
Represents OTX ByteField DataType.
Definition: ByteField.h:9
std::string GetBytes() const
Gets value as byte array.
std::string GetHexString() const
Gets hexadecimal string.
void FromBytes(const char *byteValue, int length)
Parses a byte array to ByteField.
std::string ToLiteralString() const
Gets literal string.
ByteField(std::string hexString)
Initializes a new instance of the ByteField class.
Represents base of OTX DataTypes.
Definition: Object.h:17
Namespace containing all objects related to testing inside automotive industry