#include <MamaSource.h>
Inherits from Wombat::MamaSourceManager
Inherited by Wombat::MamaSourceDerivative
Name | |
---|---|
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 |
void | addSubscription(const char * symbol, MamaSubscription * sub) |
MamaSubscription * | findSubscription(const char * symbol) |
MamaSubscription * | removeSubscription(const char * symbol) |
void | deactivateSubscriptions() |
void | activateSubscriptions() |
void | forEachSubscription(MamaSubscriptionIteratorCallback * callback, void * closure) |
Public Classes inherited from Wombat::MamaSourceManager
Name | |
---|---|
class | iterator |
Public Types inherited from Wombat::MamaSourceManager
Name | |
---|---|
typedef const iterator | const_iterator |
Public Functions inherited from Wombat::MamaSourceManager
Name | |
---|---|
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 |
class Wombat::MamaSource;
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.
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
Reimplemented by: Wombat::MamaSourceDerivative::getQuality
virtual mamaSourceState getState() const
Reimplemented by: Wombat::MamaSourceDerivative::getState
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. Is it the same as the supplied source or is the supplied source a parent (or parent of a parent) of this source
void addSubscription(
const char * symbol,
MamaSubscription * sub
)
Add a subscription.
MamaSubscription * findSubscription(
const char * symbol
)
Look up a MamaSubscription. NULL is returned if not found.
MamaSubscription * 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 deactivateSubscriptions()
Activate all subscriptions for this source.
void activateSubscriptions()
deactivate all subscriptions for this source.
void forEachSubscription(
MamaSubscriptionIteratorCallback * callback,
void * closure
)
Iterate through all subscriptions and call the MamaSubscriptionIterator’s onSubscription method for each.
Updated on 2023-03-31 at 15:29:25 +0100