A MAMA source maintains information about a data source, including the quality of the data coming from that source. More...
#include <MamaSource.h>
Public Member Functions | |
| 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 mamaQuality | getQuality () const |
| virtual mamaSourceState | getState () const |
| virtual MamaSource * | getParent () |
| virtual const MamaSource * | getParent () const |
| virtual MamaTransport * | getTransport () 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... | |
| MamaSubscription * | findSubscription (const char *symbol) |
| Look up a MamaSubscription. More... | |
| MamaSubscription * | removeSubscription (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 MamaSource * | create (const char *sourceName) |
| virtual MamaSource * | findOrCreate (const char *sourceName) |
| virtual MamaSource * | find (const char *sourceName) |
| virtual const MamaSource * | find (const char *sourceName) const |
| 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 Attributes inherited from Wombat::MamaSourceManager | |
| const typedef iterator | const_iterator |
A MAMA source maintains information about a data source, including the quality of the data coming from that source.
It inherits MamaSourceManager because a source can have sub-sources.
| Wombat::MamaSource::MamaSource | ( | ) |
| Wombat::MamaSource::MamaSource | ( | const char * | id, |
| const char * | transportName, | ||
| const char * | subscSourceName, | ||
| mamaBridge | bridge, | ||
| bool | createTransport = true |
||
| ) |
| Wombat::MamaSource::MamaSource | ( | const char * | id, |
| MamaTransport * | transport, | ||
| const char * | subscSourceName | ||
| ) |
|
virtual |
| void Wombat::MamaSource::setId | ( | const char * | id | ) |
| void Wombat::MamaSource::setMappedId | ( | const char * | id | ) |
| void Wombat::MamaSource::setDisplayId | ( | const char * | id | ) |
| void Wombat::MamaSource::setQuality | ( | mamaQuality | quality | ) |
| void Wombat::MamaSource::setState | ( | mamaSourceState | state | ) |
| void Wombat::MamaSource::setParent | ( | MamaSource * | parent | ) |
| void Wombat::MamaSource::setTransport | ( | MamaTransport * | transport | ) |
| void Wombat::MamaSource::setTransportName | ( | const char * | transportName | ) |
| void Wombat::MamaSource::setPublisherSourceName | ( | const char * | sourceName | ) |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
Reimplemented in Wombat::MamaSourceDerivative.
|
virtual |
Reimplemented in Wombat::MamaSourceDerivative.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
| mamaSource Wombat::MamaSource::getCValue | ( | ) |
| const mamaSource Wombat::MamaSource::getCValue | ( | ) | const |
| bool Wombat::MamaSource::isPartOf | ( | const MamaSource * | source | ) | const |
Is this source part of the supplied source i.e.
Is it the same as the supplied source or is the supplied source a parent (or parent of a parent) of this source
| void Wombat::MamaSource::addSubscription | ( | const char * | symbol, |
| MamaSubscription * | sub | ||
| ) |
Add a subscription.
| MamaSubscription* Wombat::MamaSource::findSubscription | ( | const char * | symbol | ) |
Look up a MamaSubscription.
NULL is returned if not found.
| MamaSubscription* Wombat::MamaSource::removeSubscription | ( | const char * | symbol | ) |
Remove a MamaSubscription.
Subscription return is the subscription removed from list of associated subscriptions. NULL is returned if not found.
| void Wombat::MamaSource::deactivateSubscriptions | ( | ) |
Activate all subscriptions for this source.
| void Wombat::MamaSource::activateSubscriptions | ( | ) |
deactivate all subscriptions for this source.
| void Wombat::MamaSource::forEachSubscription | ( | MamaSubscriptionIteratorCallback * | callback, |
| void * | closure | ||
| ) |
Iterate through all subscriptions and call the MamaSubscriptionIterator's onSubscription method for each.