Classes Files

Wombat::MamdaCurrencyHandler

More…

#include <MamdaCurrencyHandler.h>

Public Functions

  Name
virtual void onCurrencyRecap(MamdaSubscription * subscription, MamdaCurrencyListener & listener, const MamaMsg & msg, const MamdaCurrencyRecap & recap) =0
virtual void onCurrencyUpdate(MamdaSubscription * subscription, MamdaCurrencyListener & listener, const MamaMsg & msg, const MamdaCurrencyRecap & recap, const MamdaCurrencyUpdate & update) =0
virtual ~MamdaCurrencyHandler()

Detailed Description

class Wombat::MamdaCurrencyHandler;

MamdaCurrencyHandler is an interface for applications that want to have an easy way to access currency data.

The interface defines callback methods for for receiving updates on currency data.

Public Functions Documentation

function onCurrencyRecap

virtual void onCurrencyRecap(
    MamdaSubscription * subscription,
    MamdaCurrencyListener & listener,
    const MamaMsg & msg,
    const MamdaCurrencyRecap & recap
) =0

Parameters:

  • subscription The subscription which received the update.
  • listener The listener which invoked this callback.
  • msg The MamaMsg that triggered this invocation.
  • recap Access to the full quote recap details.

Method invoked when the current last-currecny information for the security is available. The reason for the invocation may be any of the following:

  • Initial image.
  • Recap update (e.g., after server fault tolerant event or data quality event.)
  • After stale status removed.

function onCurrencyUpdate

virtual void onCurrencyUpdate(
    MamdaSubscription * subscription,
    MamdaCurrencyListener & listener,
    const MamaMsg & msg,
    const MamdaCurrencyRecap & recap,
    const MamdaCurrencyUpdate & update
) =0

Parameters:

  • subscription The subscription which received the update.
  • listener The listener which invoked this callback.
  • msg The MamaMsg that triggered this invocation.
  • recap The MamaMsg that triggered this invocation.
  • update Access to the currency update details.

Method invoked when one or more of the Currency fields have been updated by one of the following market data events:

  • Initial image.
  • Recap update (e.g., after server fault tolerant event or data quality event.)
  • Generic update..

function ~MamdaCurrencyHandler

inline virtual ~MamdaCurrencyHandler()

Updated on 2023-03-31 at 15:29:57 +0100