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

OmmAnsiPage represents AnsiPage data format in Omm. More...

Inheritance diagram for thomsonreuters::ema::access::OmmAnsiPage:
thomsonreuters::ema::access::ComplexType thomsonreuters::ema::access::Data

Public Member Functions

Constructor
 OmmAnsiPage ()
 
Destructor
virtual ~OmmAnsiPage ()
 
Accessors
DataType::DataTypeEnum getDataType () const
 
Data::DataCode getCode () const
 
const EmaBuffergetAsHex () const
 
const EmaStringtoString () const
 
const EmaStringgetString () const
 
const EmaBuffergetBuffer () const
 
Operations
OmmAnsiPageclear ()
 
OmmAnsiPageset (const EmaString &value)
 
OmmAnsiPageset (const EmaBuffer &value)
 
- Public Member Functions inherited from thomsonreuters::ema::access::ComplexType
virtual ~ComplexType ()
 
- Public Member Functions inherited from thomsonreuters::ema::access::Data
const EmaStringgetCodeAsString () const
 
 operator const char * () const
 
virtual ~Data ()
 

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::ComplexType
 ComplexType ()
 
- Protected Member Functions inherited from thomsonreuters::ema::access::Data
 Data ()
 

Detailed Description

The following code snippet shows setting of AnsiPage data into FieldList;

OmmAnsiPage ansiPage;
ansiPage.set( ... );
FieldList fList;
fList.addAnsiPage( 246, ansiPage ).complete();

The following code snippet shows extraction of AnsiPage data from FieldList;

void decodeFieldList( const FieldList& fList )
{
while ( fList.forth() )
{
const FieldEntry& fEntry = fList.getEntry();
if ( fEntry.getCode() != Data::BlankEnum )
switch ( fEntry.getLoadType() )
{
const OmmAnsiPage& ommAnsiPage = fEntry.getAnsiPage();
const EmaBuffer& ansiPageValue = ommAnsiPage.getBuffer();
break;
}
}
}
Remarks
Objects of this class are intended to be short lived or rather transitional.
This class is designed to efficiently perform setting and extracting of AnsiPage and its content.
Objects of this class are not cache-able.
All methods in this class are Lock-free Method.
See Also
Data, EmaString, EmaBuffer

Definition at line 72 of file OmmAnsiPage.h.

Constructor & Destructor Documentation

thomsonreuters::ema::access::OmmAnsiPage::OmmAnsiPage ( )

Constructs OmmAnsiPage.

virtual thomsonreuters::ema::access::OmmAnsiPage::~OmmAnsiPage ( )
virtual

Destructor.

Member Function Documentation

OmmAnsiPage& thomsonreuters::ema::access::OmmAnsiPage::clear ( )

Clears the OmmAnsiPage.

Remarks
Invoking clear() method clears all the values and resets all the defaults
Returns
reference to this object
const EmaBuffer& thomsonreuters::ema::access::OmmAnsiPage::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::OmmAnsiPage::getBuffer ( ) const

Returns AnsiPage buffer.

Returns
EmaBuffer containing the AnsiPage data
Data::DataCode thomsonreuters::ema::access::OmmAnsiPage::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::OmmAnsiPage::getDataType ( ) const
virtual

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

Returns
DataType::AnsiPageEnum

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

const EmaString& thomsonreuters::ema::access::OmmAnsiPage::getString ( ) const

Returns AnsiPage string.

Returns
EmaString containing the AnsiPage data
OmmAnsiPage& thomsonreuters::ema::access::OmmAnsiPage::set ( const EmaString value)

Specifies Set.

Parameters
[in]valuespecifies AnsiPage data using EmaString
Returns
reference to this object
OmmAnsiPage& thomsonreuters::ema::access::OmmAnsiPage::set ( const EmaBuffer value)

Specifies Set.

Parameters
[in]valuespecifies AnsiPage data using EmaBuffer
Returns
reference to this object
const EmaString& thomsonreuters::ema::access::OmmAnsiPage::toString ( ) const
virtual

Returns a string representation of the class instance.

Returns
string representation of the class instance

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