OpenMAMA
Wombat::MamdaCurrencyListener Class Reference

MamdaCurrencyListener is a class that specializes in handling currency data, Developers provide their own implementation of the MamdaCurrencyHandler interface and will be delivered notifications for updates in the currency data. More...

#include <MamdaCurrencyListener.h>

Inheritance diagram for Wombat::MamdaCurrencyListener:
Wombat::MamdaMsgListener Wombat::MamdaCurrencyRecap Wombat::MamdaCurrencyUpdate Wombat::MamdaBasicRecap Wombat::MamdaBasicEvent

Public Member Functions

 MamdaCurrencyListener ()
 
virtual ~MamdaCurrencyListener ()
 
void addHandler (MamdaCurrencyHandler *handler)
 
const char * getSymbol () const
 Get the instruments string symbol. More...
 
const char * getPartId () const
 Get the participant identifier. More...
 
const MamaDateTime & getSrcTime () const
 Get the source time. More...
 
const MamaDateTime & getActivityTime () const
 Get the activity time. More...
 
const MamaDateTime & getLineTime () const
 Get the line time. More...
 
const MamaDateTime & getSendTime () const
 Get the send time. More...
 
mama_seqnum_t getEventSeqNum () const
 Get the event sequence number. More...
 
const MamaDateTime & getEventTime () const
 Get the event time. More...
 
const MamaMsgQual & getMsgQual () const
 Get the message qualifier. More...
 
bool isInitialised () const
 
MamdaFieldState getSymbolFieldState () const
 Get the string symbol field state. More...
 
MamdaFieldState getPartIdFieldState () const
 Get the participant identifier field state. More...
 
MamdaFieldState getSrcTimeFieldState () const
 Get the source time field state. More...
 
MamdaFieldState getActivityTimeFieldState () const
 Get the activity time field state. More...
 
MamdaFieldState getLineTimeFieldState () const
 Get the line time of the update. More...
 
MamdaFieldState getSendTimeFieldState () const
 Get the send time field state. More...
 
MamdaFieldState getEventSeqNumFieldState () const
 Get the event sequence number field state. More...
 
MamdaFieldState getEventTimeFieldState () const
 Get the event time field state. More...
 
MamdaFieldState getMsgQualFieldState () const
 Get the message qualifier field state. More...
 
const MamaPrice & getBidPrice () const
 Get the currency bid price. More...
 
const MamaPrice & getAskPrice () const
 Get the currency ask price. More...
 
MamdaFieldState getBidPriceFieldState () const
 Get the quote ask price fieldState. More...
 
MamdaFieldState getAskPriceFieldState () const
 Get the quote ask price fieldState. More...
 
virtual void onMsg (MamdaSubscription *subscription, const MamaMsg &msg, short msgType)
 Implementation of MamdaListener interface. More...
 
- Public Member Functions inherited from Wombat::MamdaMsgListener
virtual ~MamdaMsgListener ()
 
- Public Member Functions inherited from Wombat::MamdaCurrencyRecap
virtual ~MamdaCurrencyRecap ()
 
- Public Member Functions inherited from Wombat::MamdaBasicRecap
virtual ~MamdaBasicRecap ()
 Destructor. More...
 
- Public Member Functions inherited from Wombat::MamdaCurrencyUpdate
virtual ~MamdaCurrencyUpdate ()
 
- Public Member Functions inherited from Wombat::MamdaBasicEvent
virtual ~MamdaBasicEvent ()
 Destructor. More...
 

Detailed Description

MamdaCurrencyListener is a class that specializes in handling currency data, Developers provide their own implementation of the MamdaCurrencyHandler interface and will be delivered notifications for updates in the currency data.

An obvious application for this MAMDA class is any kind of currency analysis application.

MamdaCurrencyListener should initialize the MamdaCurrencyFields class prior to receiving the first message by calling MamdaCurrencyFields::setDictionary() with a valid dictionary object which contains Currency related fields.

Constructor & Destructor Documentation

Wombat::MamdaCurrencyListener::MamdaCurrencyListener ( )
virtual Wombat::MamdaCurrencyListener::~MamdaCurrencyListener ( )
virtual

Member Function Documentation

void Wombat::MamdaCurrencyListener::addHandler ( MamdaCurrencyHandler handler)
const char* Wombat::MamdaCurrencyListener::getSymbol ( ) const
virtual

Get the instruments string symbol.

Returns
Symbol. This is the "well-known" symbol for the security, including any symbology mapping performed by the publisher.

Implements Wombat::MamdaBasicEvent.

const char* Wombat::MamdaCurrencyListener::getPartId ( ) const
virtual

Get the participant identifier.

Returns
Participant ID. This may be an exchange identifier, a market maker ID, etc., or NULL (if this is not related to any specific participant).

Implements Wombat::MamdaBasicEvent.

const MamaDateTime& Wombat::MamdaCurrencyListener::getSrcTime ( ) const
virtual

Get the source time.

Returns
Source time. Typically, the exchange generated feed time stamp. This is often the same as the "event time", because many feeds do not distinguish between the actual event time and when the exchange sent the message.

Implements Wombat::MamdaBasicEvent.

const MamaDateTime& Wombat::MamdaCurrencyListener::getActivityTime ( ) const
virtual

Get the activity time.

Returns
Activity time. A feed handler generated time stamp representing when the data item was last updated.

Implements Wombat::MamdaBasicEvent.

const MamaDateTime& Wombat::MamdaCurrencyListener::getLineTime ( ) const
virtual

Get the line time.

Returns
Line time. A feed handler (or similar publisher) time stamp representing the time that such publisher received the update message pertaining to the event. If clocks are properly synchronized and the source time (see above) is accurate enough, then the difference between the source time and line time is the latency between the data source and the feed handler.

Implements Wombat::MamdaBasicEvent.

const MamaDateTime& Wombat::MamdaCurrencyListener::getSendTime ( ) const
virtual

Get the send time.

Returns
Send time. A feed handler (or similar publisher) time stamp representing the time that such publisher sent the current message. The difference between the line time and send time is the latency within the feed handler itself. Also, if clocks are properly synchronized then the difference between the send time and current time is the latency within the market data distribution framework (i.e. MAMA and the underlying middleware). See MAMA API: MamaDateTime::currentTime()).

Implements Wombat::MamdaBasicEvent.

mama_seqnum_t Wombat::MamdaCurrencyListener::getEventSeqNum ( ) const
virtual

Get the event sequence number.

Returns
Source sequence number. The exchange generated sequence number.

Implements Wombat::MamdaBasicEvent.

const MamaDateTime& Wombat::MamdaCurrencyListener::getEventTime ( ) const
virtual

Get the event time.

Returns
Event time. Typically, when the event actually occurred. This is often the same as the "source time", because many feeds do not distinguish between the actual event time and when the exchange sent the message.

Implements Wombat::MamdaBasicEvent.

const MamaMsgQual& Wombat::MamdaCurrencyListener::getMsgQual ( ) const
virtual

Get the message qualifier.

Returns
Message Qualifier. The message qualifier provides information in relation to messages duplicate, delayed or out-of-sequence status.

Implements Wombat::MamdaBasicEvent.

bool Wombat::MamdaCurrencyListener::isInitialised ( ) const
MamdaFieldState Wombat::MamdaCurrencyListener::getSymbolFieldState ( ) const
virtual

Get the string symbol field state.

Returns
MamdaFieldState. An enumeration representing field state.

Implements Wombat::MamdaBasicEvent.

MamdaFieldState Wombat::MamdaCurrencyListener::getPartIdFieldState ( ) const
virtual

Get the participant identifier field state.

Returns
MamdaFieldState. An enumeration representing field state.

Implements Wombat::MamdaBasicEvent.

MamdaFieldState Wombat::MamdaCurrencyListener::getSrcTimeFieldState ( ) const
virtual

Get the source time field state.

Returns
MamdaFieldState. An enumeration representing field state.

Implements Wombat::MamdaBasicEvent.

MamdaFieldState Wombat::MamdaCurrencyListener::getActivityTimeFieldState ( ) const
virtual

Get the activity time field state.

Returns
MamdaFieldState. An enumeration representing field state.

Implements Wombat::MamdaBasicEvent.

MamdaFieldState Wombat::MamdaCurrencyListener::getLineTimeFieldState ( ) const
virtual

Get the line time of the update.

Returns
MamdaFieldState. An enumeration representing field state.

Implements Wombat::MamdaBasicEvent.

MamdaFieldState Wombat::MamdaCurrencyListener::getSendTimeFieldState ( ) const
virtual

Get the send time field state.

Returns
MamdaFieldState. An enumeration representing field state.

Implements Wombat::MamdaBasicEvent.

MamdaFieldState Wombat::MamdaCurrencyListener::getEventSeqNumFieldState ( ) const
virtual

Get the event sequence number field state.

Returns
MamdaFieldState. An enumeration representing field state.

Implements Wombat::MamdaBasicEvent.

MamdaFieldState Wombat::MamdaCurrencyListener::getEventTimeFieldState ( ) const
virtual

Get the event time field state.

Returns
MamdaFieldState. An enumeration representing field state.

Implements Wombat::MamdaBasicEvent.

MamdaFieldState Wombat::MamdaCurrencyListener::getMsgQualFieldState ( ) const
virtual

Get the message qualifier field state.

Returns
Message Qualifier. The message qualifier provides information in relation to messages duplicate, delayed or out-of-sequence status.

Implements Wombat::MamdaBasicEvent.

const MamaPrice& Wombat::MamdaCurrencyListener::getBidPrice ( ) const
virtual

Get the currency bid price.

Returns
Bid price. The highest price that the representative party/group is willing to pay to buy the security.

Implements Wombat::MamdaCurrencyRecap.

const MamaPrice& Wombat::MamdaCurrencyListener::getAskPrice ( ) const
virtual

Get the currency ask price.

Returns
Ask price. The lowest price that the representative party/group is willing to take to sell the security.

Implements Wombat::MamdaCurrencyRecap.

MamdaFieldState Wombat::MamdaCurrencyListener::getBidPriceFieldState ( ) const
virtual

Get the quote ask price fieldState.

Returns
MamdaFieldState. An enumeration representing field state.

Implements Wombat::MamdaCurrencyRecap.

MamdaFieldState Wombat::MamdaCurrencyListener::getAskPriceFieldState ( ) const
virtual

Get the quote ask price fieldState.

Returns
MamdaFieldState. An enumeration representing field state.

Implements Wombat::MamdaCurrencyRecap.

virtual void Wombat::MamdaCurrencyListener::onMsg ( MamdaSubscription subscription,
const MamaMsg &  msg,
short  msgType 
)
virtual

Implementation of MamdaListener interface.


Exceptions
<MamaStatus>{MAMDA default implementation.}

Implements Wombat::MamdaMsgListener.


The documentation for this class was generated from the following file:


© 2012 Linux Foundation