Firmware
|
Base publication wrapper class, used in list traversal of various publications. More...
#include <Publication.hpp>
Public Member Functions | |
PublicationBase (const struct orb_metadata *meta, int priority=-1) | |
Constructor. More... | |
PublicationBase (const PublicationBase &)=delete | |
PublicationBase & | operator= (const PublicationBase &)=delete |
PublicationBase (PublicationBase &&)=delete | |
PublicationBase & | operator= (PublicationBase &&)=delete |
bool | update (void *data) |
Update the struct. More... | |
Protected Attributes | |
const struct orb_metadata * | _meta |
const int | _priority |
orb_advert_t | _handle {nullptr} |
Base publication wrapper class, used in list traversal of various publications.
uORB::PublicationBase::PublicationBase | ( | const struct orb_metadata * | meta, |
int | priority = -1 |
||
) |
Constructor.
meta | The uORB metadata (usually from the ORB_ID() macro) for the topic. |
priority | The priority for multi pub/sub, 0-based, -1 means don't publish as multi |
bool uORB::PublicationBase::update | ( | void * | data | ) |
Update the struct.
data | The uORB message struct we are updating. |