Classes Files

Wombat::MamdaSecStatusSymbolSourceAdapter

More…

#include <MamdaSecStatusSymbolSourceAdapter.h>

Inherits from Wombat::MamdaSymbolSourceEvent, Wombat::MamdaSecStatusHandler

Public Functions

  Name
  MamdaSecStatusSymbolSourceAdapter()
virtual ~MamdaSecStatusSymbolSourceAdapter()
void addHandler(MamdaSymbolSourceHandler * handler)
virtual const char * getSourcedSymbol() const
virtual void onSecStatusRecap(MamdaSubscription * subscription, MamdaSecStatusListener & listener, const MamaMsg & msg, MamdaSecStatusRecap & recap)
virtual void onSecStatusUpdate(MamdaSubscription * subscription, MamdaSecStatusListener & listener, const MamaMsg & msg)

Additional inherited members

Public Functions inherited from Wombat::MamdaSymbolSourceEvent

  Name
virtual ~MamdaSymbolSourceEvent()

Public Functions inherited from Wombat::MamdaSecStatusHandler

  Name
virtual ~MamdaSecStatusHandler()

Detailed Description

class Wombat::MamdaSecStatusSymbolSourceAdapter;

MamdaSecStatusSymbolSourceAdapter is a simple adapter class that can be added as a handler to the MamdaSecStatusListener turning it into a MamdaSymbolSource. Objects implementing the MamdaSymbolSource interface can register with this adapter and receive notification of newly announced symbols indirectly from the MamdaSecStatusListener via this adapter.

Public Functions Documentation

function MamdaSecStatusSymbolSourceAdapter

MamdaSecStatusSymbolSourceAdapter()

function ~MamdaSecStatusSymbolSourceAdapter

virtual ~MamdaSecStatusSymbolSourceAdapter()

function addHandler

void addHandler(
    MamdaSymbolSourceHandler * handler
)

Parameters:

  • handler The symbol source handler

Register a handler implementing the MamdaSymbolSourceHandler interface.

function getSourcedSymbol

virtual const char * getSourcedSymbol() const

Return: sourced symbol

Reimplements: Wombat::MamdaSymbolSourceEvent::getSourcedSymbol

Return the sourced symbol. Implementation of the MamdaSymbolSourceEvent interface

function onSecStatusRecap

virtual void onSecStatusRecap(
    MamdaSubscription * subscription,
    MamdaSecStatusListener & listener,
    const MamaMsg & msg,
    MamdaSecStatusRecap & recap
)

Parameters:

  • subscription The security status subscription.
  • listener The security status listener.
  • msg The security status update message.

Reimplements: Wombat::MamdaSecStatusHandler::onSecStatusRecap

Implementation of MamdaSecStatusHandler interface.

function onSecStatusUpdate

virtual void onSecStatusUpdate(
    MamdaSubscription * subscription,
    MamdaSecStatusListener & listener,
    const MamaMsg & msg
)

Parameters:

  • subscription The subscription which received the update
  • listener The listener which invoked this callback.
  • msg The MamaMsg that triggered this invocation.

Reimplements: Wombat::MamdaSecStatusHandler::onSecStatusUpdate

Method invoked when a security status update is received.


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