Standard implementation of DataReference. More...
#include <datareference.h>

Public Types | |
|
typedef boost::function< void(const T &)> | func |
Public Member Functions | |
| DataReference (bool own, T *ptr) | |
| DataReference (bool own, func func_ptr) | |
| DataReference (bool own, func func_ptr, T *ptr) | |
| void | update () |
| virtual void | readFromCan (const CanAeroMetadata &meta, const can_t &can) |
| std::vector< can_t > | write (const CanAeroMetadata &meta) |
| bool | needRequest () const |
| void | requested () |
| bool | hasChanged () const |
| bool | isSelfPublished () const |
Protected Attributes | |
| unsigned long | m_number_of_losses |
| T | m_cached_value |
| T | m_history_value |
Standard implementation of DataReference.
| SCS::DataReference< T >::DataReference | ( | bool | own, |
| T * | ptr | ||
| ) |
| ptr | ptr to value in application that will be update when data arrives from the Bus. |
| SCS::DataReference< T >::DataReference | ( | bool | own, |
| func | func_ptr | ||
| ) |
| func_ptr | function to be invoked when data arrives from the bus |
| SCS::DataReference< T >::DataReference | ( | bool | own, |
| func | func_ptr, | ||
| T * | ptr | ||
| ) |
| func_ptr | function to be invoked when data arrives from the bus |
| ptr | ptr to value in application that will be update when data arrives from the Bus. |
| bool SCS::DataReference< T >::hasChanged | ( | ) | const [virtual] |
Implements SCS::TypelessDataReference.
| bool SCS::DataReference< T >::isSelfPublished | ( | ) | const [inline, virtual] |
Implements SCS::TypelessDataReference.
| bool SCS::DataReference< T >::needRequest | ( | ) | const [virtual] |
Implements SCS::TypelessDataReference.
| virtual void SCS::DataReference< T >::readFromCan | ( | const CanAeroMetadata & | meta, |
| const can_t & | can | ||
| ) | [virtual] |
Implements SCS::TypelessDataReference.
| void SCS::DataReference< T >::requested | ( | ) | [virtual] |
Implements SCS::TypelessDataReference.
| void SCS::DataReference< T >::update | ( | ) | [virtual] |
Implements SCS::TypelessDataReference.
| std::vector<can_t> SCS::DataReference< T >::write | ( | const CanAeroMetadata & | meta | ) | [virtual] |
Implements SCS::TypelessDataReference.
1.7.3