OpenMAMA C++ API
Wombat::MamaSourceDerivative Class Reference

A MamaSourceDerivative provides a reference to a common MamaSource object but can have attributes (such as the quality state) overridden. More...

#include <MamaSourceDerivative.h>

Inheritance diagram for Wombat::MamaSourceDerivative:
Wombat::MamaSource Wombat::MamaSourceManager

Public Member Functions

 MamaSourceDerivative (const MamaSource *baseSource)
 Construct an instance of a derived MAMA source. More...
 
virtual ~MamaSourceDerivative ()
 
virtual void setQuality (mamaQuality quality)
 
virtual void setState (mamaSourceState state)
 
virtual mamaQuality getQuality () const
 
virtual mamaSourceState getState () const
 
virtual MamaSourceDerivativefind (const char *sourceName)
 
virtual const MamaSourceDerivativefind (const char *sourceName) const
 
const MamaSourcegetBaseSource () const
 
- Public Member Functions inherited from Wombat::MamaSource
 MamaSource ()
 
 MamaSource (const char *id, const char *transportName, const char *subscSourceName, mamaBridge bridge, bool createTransport=true)
 
 MamaSource (const char *id, MamaTransport *transport, const char *subscSourceName)
 
virtual ~MamaSource ()
 
void setId (const char *id)
 
void setMappedId (const char *id)
 
void setDisplayId (const char *id)
 
void setQuality (mamaQuality quality)
 
void setState (mamaSourceState state)
 
void setParent (MamaSource *parent)
 
void setTransport (MamaTransport *transport)
 
void setTransportName (const char *transportName)
 
void setPublisherSourceName (const char *sourceName)
 
virtual const char * getId () const
 
virtual const char * getMappedId () const
 
virtual const char * getDisplayId () const
 
virtual MamaSourcegetParent ()
 
virtual const MamaSourcegetParent () const
 
virtual MamaTransportgetTransport () const
 
virtual const char * getTransportName () const
 
virtual const char * getPublisherSourceName () const
 
mamaSource getCValue ()
 
const mamaSource getCValue () const
 
bool isPartOf (const MamaSource *source) const
 Is this source part of the supplied source i.e. More...
 
void addSubscription (const char *symbol, MamaSubscription *sub)
 Add a subscription. More...
 
MamaSubscriptionfindSubscription (const char *symbol)
 Look up a MamaSubscription. More...
 
MamaSubscriptionremoveSubscription (const char *symbol)
 Remove a MamaSubscription. More...
 
void deactivateSubscriptions ()
 Activate all subscriptions for this source. More...
 
void activateSubscriptions ()
 deactivate all subscriptions for this source. More...
 
void forEachSubscription (MamaSubscriptionIteratorCallback *callback, void *closure)
 Iterate through all subscriptions and call the MamaSubscriptionIterator's onSubscription method for each. More...
 
- Public Member Functions inherited from Wombat::MamaSourceManager
 MamaSourceManager ()
 
virtual ~MamaSourceManager ()
 
virtual MamaSourcecreate (const char *sourceName)
 
virtual MamaSourcefindOrCreate (const char *sourceName)
 
virtual void add (MamaSource *source)
 
virtual void add (const char *sourceName, MamaSource *source)
 
mama_size_t size () const
 
iterator begin ()
 
const_iterator begin () const
 
iterator end ()
 
const_iterator end () const
 
mamaSourceManager getCValue ()
 
const mamaSourceManager getCValue () const
 

Additional Inherited Members

- Public Types inherited from Wombat::MamaSourceManager
typedef const iterator const_iterator
 

Detailed Description

A MamaSourceDerivative provides a reference to a common MamaSource object but can have attributes (such as the quality state) overridden.

This class is intended to be associated with individually subscribed items, including order books.

Constructor & Destructor Documentation

§ MamaSourceDerivative()

Wombat::MamaSourceDerivative::MamaSourceDerivative ( const MamaSource baseSource)

Construct an instance of a derived MAMA source.

The resulting source derivative will have derived sub-sources for each of the sub-sources in baseSource.

§ ~MamaSourceDerivative()

virtual Wombat::MamaSourceDerivative::~MamaSourceDerivative ( )
virtual

Member Function Documentation

§ setQuality()

virtual void Wombat::MamaSourceDerivative::setQuality ( mamaQuality  quality)
virtual

§ setState()

virtual void Wombat::MamaSourceDerivative::setState ( mamaSourceState  state)
virtual

§ getQuality()

virtual mamaQuality Wombat::MamaSourceDerivative::getQuality ( ) const
virtual

Reimplemented from Wombat::MamaSource.

§ getState()

virtual mamaSourceState Wombat::MamaSourceDerivative::getState ( ) const
virtual

Reimplemented from Wombat::MamaSource.

§ find() [1/2]

virtual MamaSourceDerivative* Wombat::MamaSourceDerivative::find ( const char *  sourceName)
virtual

Reimplemented from Wombat::MamaSourceManager.

§ find() [2/2]

virtual const MamaSourceDerivative* Wombat::MamaSourceDerivative::find ( const char *  sourceName) const
virtual

Reimplemented from Wombat::MamaSourceManager.

§ getBaseSource()

const MamaSource* Wombat::MamaSourceDerivative::getBaseSource ( ) const
inline