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
OpenTestSystem::Otx::Runtime::Api::DataTypes::ByteField
Represents OTX ByteField DataType.
Definition: ByteField.h:9
OpenTestSystem::Otx::Runtime::Api::DataTypes::ByteField::GetBytes
std::string GetBytes() const
Gets value as byte array.
OpenTestSystem::Otx::Runtime::Api::DataTypes::ByteField::GetHexString
std::string GetHexString() const
Gets hexadecimal string.
OpenTestSystem::Otx::Runtime::Api::DataTypes::ByteField::ByteField
ByteField(std::string hexString)
Initializes a new instance of the ByteField class.
OpenTestSystem::Otx::Runtime::Api::DataTypes::ByteField::FromBytes
void FromBytes(const char *byteValue, int length)
Parses a byte array to ByteField.
OpenTestSystem
Namespace containing all objects related to testing inside automotive industry
OpenTestSystem::Otx::Runtime::Api::DataTypes::ByteField::ToLiteralString
std::string ToLiteralString() const
Gets literal string.
OpenTestSystem::Otx::Runtime::Api::DataTypes::Object
Represents base of OTX DataTypes.
Definition: Object.h:17