DUNE: Uniform Navigational Environment  2020.01.0
Transports::DataStore::DataStore Class Reference

Detailed Description

This class is used to store samples locally until they are forwarded to other node.

Public Member Functions

 DataStore (Task *task)
 
 ~DataStore (void)
 
void addSample (DataSample *sample)
 
void addData (const IMC::HistoricData *data)
 
IMC::HistoricData * pollCommands (int destination, int size)
 
IMC::HistoricData * pollSamples (int size)
 

Constructor & Destructor Documentation

Transports::DataStore::DataStore::DataStore ( Task task)
inline
Transports::DataStore::DataStore::~DataStore ( void  )
inline

Member Function Documentation

void Transports::DataStore::DataStore::addData ( const IMC::HistoricData *  data)
inline

Add a series of historic samples packed as an HistoricData message.

References Transports::DataStore::parse().

void Transports::DataStore::DataStore::addSample ( DataSample sample)
inline
IMC::HistoricData* Transports::DataStore::DataStore::pollCommands ( int  destination,
int  size 
)
inline

Retrieve a series of commands that take up to 'size'.

IMC::HistoricData* Transports::DataStore::DataStore::pollSamples ( int  size)
inline
Collaboration diagram for Transports::DataStore::DataStore:
Collaboration graph