Template parent class for specific publishers. More...
#include <publisher.hpp>
Public Types | |
typedef mm_messages::ByteArray | ByteArray |
typedef mm_messages::MessageRegistry | MessageRegistry |
Public Member Functions | |
template<typename T > | |
void | publish (const unsigned int &id, const T &msg) |
Shunt a message off to be published. More... | |
Publisher (const std::string &name) | |
virtual | ~Publisher () |
Private Attributes | |
std::string | name |
Template parent class for specific publishers.
This gets typedef'd for specific publisher types in each package (e.g. MessageDemux, RadioMuxDemux)
Definition at line 41 of file publisher.hpp.
typedef mm_messages::ByteArray mm_messages::Publisher< Multiplexer >::ByteArray |
Definition at line 44 of file publisher.hpp.
typedef mm_messages::MessageRegistry mm_messages::Publisher< Multiplexer >::MessageRegistry |
Definition at line 43 of file publisher.hpp.
|
inline |
Definition at line 46 of file publisher.hpp.
|
inlinevirtual |
Definition at line 52 of file publisher.hpp.
|
inline |
Shunt a message off to be published.
id | |
msg |
T | the data type for the message. |
UnregisteredID | : if this packet id hasn't been registered by the mux. |
InvalidIDTypeCombination | : if this packet id doesn't correspond to the template msg type. |
Definition at line 63 of file publisher.hpp.
|
private |
Definition at line 89 of file publisher.hpp.