OmmEnum represents UInt16 value in Omm. The enumeration is the meaning of the UInt16 value.
More...
void decodeData(
const Data& rcvdData )
{
switch ( rcvdData.getDataType() )
{
UInt16 value =
static_cast< const OmmEnum&
>( rcvdData ).
getEnum();
break;
}
}
unsigned short UInt16
represents 16-bit unsigned integer
- See also
- Data, EmaString, EmaBuffer
Definition at line 50 of file OmmEnum.h.
◆ getAsHex()
const EmaBuffer& refinitiv::ema::access::OmmEnum::getAsHex |
( |
| ) |
const |
|
virtual |
Returns a buffer that in turn provides an alphanumeric null-terminated hexadecimal string representation.
- Returns
- EmaBuffer with the message hex information
Implements refinitiv::ema::access::Data.
◆ getCode()
◆ getDataType()
◆ getEnum()
UInt16 refinitiv::ema::access::OmmEnum::getEnum |
( |
| ) |
const |
Returns Enum.
- Exceptions
-
- Returns
- value of UInt16
◆ toString()
const EmaString& refinitiv::ema::access::OmmEnum::toString |
( |
| ) |
const |
|
virtual |
Returns a string representation of the class instance.
- Returns
- string representation of the class instance (e.g., "255" )
Implements refinitiv::ema::access::Data.