EMA C++ Edition
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
List of all members | Friends
thomsonreuters::ema::access::OmmBuffer Class Reference

OmmBuffer represents a binary buffer value in Omm. More...

Inheritance diagram for thomsonreuters::ema::access::OmmBuffer:
thomsonreuters::ema::access::Data

Public Member Functions

Accessors
DataType::DataTypeEnum getDataType () const
 
Data::DataCode getCode () const
 
const EmaBuffergetAsHex () const
 
const EmaStringtoString () const
 
const EmaBuffergetBuffer () const
 
- Public Member Functions inherited from thomsonreuters::ema::access::Data
const EmaStringgetCodeAsString () const
 
 operator const char * () const
 
virtual ~Data ()
 

Friends

class Decoder
 
class StaticDecoder
 

Additional Inherited Members

- Public Types inherited from thomsonreuters::ema::access::Data
enum  DataCode {
  NoCodeEnum = 0,
  BlankEnum = 1
}
 
- Protected Member Functions inherited from thomsonreuters::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 OmmBuffer& >( rcvdData ).getBuffer();
break;
}
}
Remarks
OmmBuffer 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 OmmBuffer.h.

Member Function Documentation

const EmaBuffer& thomsonreuters::ema::access::OmmBuffer::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 thomsonreuters::ema::access::Data.

const EmaBuffer& thomsonreuters::ema::access::OmmBuffer::getBuffer ( ) const

Returns Buffer.

Returns
binary buffer contained in EmaBuffer
Data::DataCode thomsonreuters::ema::access::OmmBuffer::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 thomsonreuters::ema::access::Data.

DataType::DataTypeEnum thomsonreuters::ema::access::OmmBuffer::getDataType ( ) const
virtual

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

Returns
DataType::BufferEnum

Implements thomsonreuters::ema::access::Data.

const EmaString& thomsonreuters::ema::access::OmmBuffer::toString ( ) const
virtual

Returns a string representation of the class instance.

Returns
string representation of the class instance

Implements thomsonreuters::ema::access::Data.

Friends And Related Function Documentation

friend class Decoder
friend

Definition at line 84 of file OmmBuffer.h.

friend class StaticDecoder
friend

Definition at line 85 of file OmmBuffer.h.