EMA C++ Edition
List of all members
refinitiv::ema::access::OmmUtf8 Class Reference

OmmUtf8 represents Utf8 string value in Omm. More...

Inheritance diagram for refinitiv::ema::access::OmmUtf8:
refinitiv::ema::access::Data

Accessors

class Decoder
 
class StaticDecoder
 
DataType::DataTypeEnum getDataType () const
  More...
 
Data::DataCode getCode () const
  More...
 
const EmaBuffergetAsHex () const
  More...
 
const EmaStringtoString () const
  More...
 
const EmaBuffergetUtf8 () const
  More...
 

Additional Inherited Members

- Public Types inherited from refinitiv::ema::access::Data
enum  DataCode {
  NoCodeEnum = 0 ,
  BlankEnum = 1
}
 
- Public Member Functions inherited from refinitiv::ema::access::Data
const EmaStringgetCodeAsString () const
  More...
 
 operator const char * () const
  More...
 
virtual ~Data ()
  More...
 
- Protected Member Functions inherited from refinitiv::ema::access::Data
 Data ()
 

Detailed Description

void decodeData( const Data& rcvdData )
{
if ( rcvdData.getCode() != Data::BlankEnum )
switch ( rcvdData.getDataType() )
{
const EmaBuffer& value = static_cast< const OmmUtf8& >( rcvdData ).getUtf8();
break;
}
}
const EmaBuffer & getUtf8() const
Remarks
OmmUtf8 is a read only class.
The usage of this class is limited to downcast operation only.
All methods in this class are Lock-free Method.
See also
Data, EmaString, EmaBuffer

Definition at line 50 of file OmmUtf8.h.

Member Function Documentation

◆ getAsHex()

const EmaBuffer& refinitiv::ema::access::OmmUtf8::getAsHex ( ) const
virtual

Returns a buffer that in turn provides an alphanumeric null-terminated hexadecimal string representation.

Returns
EmaBuffer with the object hex information

Implements refinitiv::ema::access::Data.

◆ getCode()

Data::DataCode refinitiv::ema::access::OmmUtf8::getCode ( ) const
virtual

Returns the Code, which indicates a special state of a DataType.

Returns
Data::BlankEnum if received data is blank; Data::NoCodeEnum otherwise

Implements refinitiv::ema::access::Data.

◆ getDataType()

DataType::DataTypeEnum refinitiv::ema::access::OmmUtf8::getDataType ( ) const
virtual

Returns the DataType, which is the type of Omm data. Results in this class type.

Returns
DataType::Utf8Enum

Implements refinitiv::ema::access::Data.

◆ getUtf8()

const EmaBuffer& refinitiv::ema::access::OmmUtf8::getUtf8 ( ) const

Returns Utf8.

Returns
Utf8 string value contained in EmaBuffer

◆ toString()

const EmaString& refinitiv::ema::access::OmmUtf8::toString ( ) const
virtual

Returns a string representation of the class instance.

Returns
string representation of the class instance (e.g., "-1234" )

Implements refinitiv::ema::access::Data.