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

RmtesBuffer represents RMTES data. More...

Public Member Functions

Constructor
 RmtesBuffer ()
 
 RmtesBuffer (UInt32 length)
 
 RmtesBuffer (const char *buf, UInt32 length)
 
 RmtesBuffer (const RmtesBuffer &buf)
 
Destructor
virtual ~RmtesBuffer ()
 
Accessors
const EmaBuffergetAsUTF8 () const
 
const EmaBufferU16getAsUTF16 () const
 
const EmaStringtoString () const
 
Operations
RmtesBufferclear ()
 
RmtesBufferapply (const RmtesBuffer &buf)
 
RmtesBufferapply (const char *buf, UInt32 length)
 
RmtesBufferapply (const EmaBuffer &buf)
 

Friends

class EmaUnitTestConnect
 
class OmmRmtesDecoder
 

Detailed Description

RmtesBuffer stores and applies RMTES data.

The following code snippet shows a simple decoding of RmtesBuffer.

rmtesBuffer.apply( fe.getRmtes() );
cout << rmtesBuffer.toString() << endl;
Remarks
RmtesBuffer class contains a copy of the buffer passed on apply methods.
All methods in this class are Lock-free Method.
See Also
EmaBuffer, EmaString, EmaBufferU16, OmmInvalidUsageException

Definition at line 54 of file RmtesBuffer.h.

Constructor & Destructor Documentation

thomsonreuters::ema::access::RmtesBuffer::RmtesBuffer ( )

Constructs RmtesBuffer.

thomsonreuters::ema::access::RmtesBuffer::RmtesBuffer ( UInt32  length)

Constructs RmtesBuffer.

Remarks
Preallocates memory if length is different than 0
Exceptions
OmmMemoryExhaustionExceptionif application runs out of memory
Parameters
[in]lengthspecifies size of preallocated memory
thomsonreuters::ema::access::RmtesBuffer::RmtesBuffer ( const char *  buf,
UInt32  length 
)

Assignment constructor

Exceptions
OmmMemoryExhaustionExceptionif application runs out of memory
OmmInvalidUsageExceptionif fails to apply passed in content
Parameters
[in]bufpointer to the memory containing copied in buffer
[in]lengthspecifies number of characters to copy
thomsonreuters::ema::access::RmtesBuffer::RmtesBuffer ( const RmtesBuffer buf)

Copy constructor.

Exceptions
OmmMemoryExhaustionExceptionif application runs out of memory
OmmInvalidUsageExceptionif fails to apply passed in content
Parameters
[in]bufcopied in RmtesBuffer object
virtual thomsonreuters::ema::access::RmtesBuffer::~RmtesBuffer ( )
virtual

Destructor.

Member Function Documentation

RmtesBuffer& thomsonreuters::ema::access::RmtesBuffer::apply ( const RmtesBuffer buf)

apply passed in RMTES data

Exceptions
OmmMemoryExhaustionExceptionif application runs out of memory
OmmInvalidUsageExceptionif fails to apply
Parameters
[in]bufspecifies RmtesBuffer to be applied to this object
Returns
reference to this object
RmtesBuffer& thomsonreuters::ema::access::RmtesBuffer::apply ( const char *  buf,
UInt32  length 
)

apply passed in RMTES data

Exceptions
OmmMemoryExhaustionExceptionif application runs out of memory
OmmInvalidUsageExceptionif fails to apply
Parameters
[in]bufspecifies pointer to the memory containing RMTES data to be applied to this object
[in]lengthspecifies size of the memory to be applied to this object
Returns
reference to this object
RmtesBuffer& thomsonreuters::ema::access::RmtesBuffer::apply ( const EmaBuffer buf)

apply passed in RMTES data

Exceptions
OmmMemoryExhaustionExceptionif application runs out of memory
OmmInvalidUsageExceptionif fails to apply
Parameters
[in]bufspecifies EmaBuffer containing RMTES string to be applied to this object
Returns
reference to this object
RmtesBuffer& thomsonreuters::ema::access::RmtesBuffer::clear ( )

Clears contained content.

Returns
reference to this object
const EmaBufferU16& thomsonreuters::ema::access::RmtesBuffer::getAsUTF16 ( ) const

Returns the content converted as UTF16.

Exceptions
OmmMemoryExhaustionExceptionif application runs out of memory
OmmInvalidUsageExceptionif fails to convert
Returns
EmaBufferU16 containing RMTES data converted to UTF16
const EmaBuffer& thomsonreuters::ema::access::RmtesBuffer::getAsUTF8 ( ) const

Returns the content converted as UTF8.

Exceptions
OmmMemoryExhaustionExceptionif application runs out of memory
OmmInvalidUsageExceptionif fails to convert
Returns
EmaBuffer containing RMTES data converted to UTF8
const EmaString& thomsonreuters::ema::access::RmtesBuffer::toString ( ) const

Returns a string representation of the class instance which is converted to UTF8.

Exceptions
OmmMemoryExhaustionExceptionif application runs out of memory
OmmInvalidUsageExceptionif fails to convert
Returns
EmaString containing RMTES data converted to UTF8

Friends And Related Function Documentation

friend class EmaUnitTestConnect
friend

Definition at line 154 of file RmtesBuffer.h.

friend class OmmRmtesDecoder
friend

Definition at line 153 of file RmtesBuffer.h.