OTX-Runtime for C++  
OpenTestSystem::Otx::Runtime::Api::DataTypes::ByteField Class Reference

Represents OTX ByteField DataType. More...

#include <ByteField.h>

Inheritance diagram for OpenTestSystem::Otx::Runtime::Api::DataTypes::ByteField:
Inheritance graph

Public Member Functions

 ByteField (std::string hexString)
 Initializes a new instance of the ByteField class. More...
 
void FromBytes (const char *byteValue, int length)
 Parses a byte array to ByteField. More...
 
std::string GetBytes () const
 Gets value as byte array. More...
 
std::string GetHexString () const
 Gets hexadecimal string. More...
 
std::string ToLiteralString () const
 Gets literal string. More...
 

Detailed Description

Represents OTX ByteField DataType.

Constructor & Destructor Documentation

◆ ByteField()

OpenTestSystem::Otx::Runtime::Api::DataTypes::ByteField::ByteField ( std::string  hexString)

Initializes a new instance of the ByteField class.

Parameters
hexStringValue of ByteField which is presented by hexadecimal string.

Member Function Documentation

◆ FromBytes()

void OpenTestSystem::Otx::Runtime::Api::DataTypes::ByteField::FromBytes ( const char *  byteValue,
int  length 
)

Parses a byte array to ByteField.

Parameters
byteValueByte array.
lengthLength of Byte array.

◆ GetBytes()

std::string OpenTestSystem::Otx::Runtime::Api::DataTypes::ByteField::GetBytes ( ) const

Gets value as byte array.

Returns
Value as byte array.

◆ GetHexString()

std::string OpenTestSystem::Otx::Runtime::Api::DataTypes::ByteField::GetHexString ( ) const

Gets hexadecimal string.

Returns
Value of ByteField which is presented by hexadecimal string.

◆ ToLiteralString()

std::string OpenTestSystem::Otx::Runtime::Api::DataTypes::ByteField::ToLiteralString ( ) const
virtual

Gets literal string.

Returns
Literal string.

Reimplemented from OpenTestSystem::Otx::Runtime::Api::DataTypes::Object.


The documentation for this class was generated from the following file: