DetectorGraph
2.0
|
Base class that implements a Publisher behavior. More...
Public Member Functions | |
Publisher () | |
void | SetGraph (Graph *aGraph) |
void | Publish (const T &data) |
Publish a new version of T to a Topic. More... | |
Protected Attributes | |
Topic< T > * | mTopic |
Base class that implements a Publisher behavior.
Detectors inherit from a number of versions of this class to implement their output set.
A class FooDetector
acquires the "Publisher of BarTopicState" behavior by inheriting Publisher
templated to BarTopicState
.
This class serves a tiny purpose:
The enable the Publishing arc, detectors must call Detector::SetupPublishing:
If you publish multiple items you will need to either qualify each Publish
or include a using
declaration in your header. See StackOverflow for more information
Definition at line 66 of file publisher.hpp.
|
inline |
Definition at line 73 of file publisher.hpp.
|
inline |
Publish a new version of T to a Topic.
Definition at line 85 of file publisher.hpp.
|
inline |
Definition at line 77 of file publisher.hpp.
|
protected |
Definition at line 69 of file publisher.hpp.