PX4 Firmware
PX4 Autopilot Software http://px4.io
uORB::PublicationData< T > Class Template Reference

The publication class with data embedded. More...

#include <Publication.hpp>

Inheritance diagram for uORB::PublicationData< T >:
Collaboration diagram for uORB::PublicationData< T >:

Public Member Functions

 PublicationData (const orb_metadata *meta)
 Constructor. More...
 
 ~PublicationData ()=default
 
T & get ()
 
void set (const T &data)
 
bool update ()
 
bool update (const T &data)
 
- Public Member Functions inherited from uORB::Publication< T >
 Publication (const orb_metadata *meta)
 Constructor. More...
 
 ~Publication ()
 
bool publish (const T &data)
 Publish the struct. More...
 

Private Attributes

_data {}
 

Additional Inherited Members

- Protected Attributes inherited from uORB::Publication< T >
const orb_metadata_meta
 
orb_advert_t _handle {nullptr}
 

Detailed Description

template<typename T>
class uORB::PublicationData< T >

The publication class with data embedded.

Definition at line 95 of file Publication.hpp.

Constructor & Destructor Documentation

◆ PublicationData()

template<typename T>
uORB::PublicationData< T >::PublicationData ( const orb_metadata meta)
inline

Constructor.

Parameters
metaThe uORB metadata (usually from the ORB_ID() macro) for the topic.

Definition at line 103 of file Publication.hpp.

◆ ~PublicationData()

template<typename T>
uORB::PublicationData< T >::~PublicationData ( )
default

Member Function Documentation

◆ get()

◆ set()

template<typename T>
void uORB::PublicationData< T >::set ( const T &  data)
inline

Definition at line 107 of file Publication.hpp.

◆ update() [1/2]

◆ update() [2/2]

template<typename T>
bool uORB::PublicationData< T >::update ( const T &  data)
inline

Definition at line 111 of file Publication.hpp.

Member Data Documentation

◆ _data

template<typename T>
T uORB::PublicationData< T >::_data {}
private

Definition at line 118 of file Publication.hpp.


The documentation for this class was generated from the following file: