Rise
The Vieneo Province
Loading...
Searching...
No Matches
CloudWeather::Receiver Class Reference

#include <CloudWeatherReceiver.h>

Collaboration diagram for CloudWeather::Receiver:
[legend]

Public Member Functions

 Receiver ()
 ~Receiver ()
void Reset ()
MapPtr Latest ()
bool Submit (const uint8_t *packet, size_t size)

Private Member Functions

void Run ()

Private Attributes

std::mutex mutex
std::condition_variable wake
std::deque< std::vector< uint8_t > > queue
MapPtr latest
uint64_t epoch = 0
bool stopping = false
std::thread worker

Detailed Description

Definition at line 12 of file CloudWeatherReceiver.h.

Constructor & Destructor Documentation

◆ Receiver()

CloudWeather::Receiver::Receiver ( )
inline

Definition at line 46 of file CloudWeatherReceiver.h.

Here is the call graph for this function:

◆ ~Receiver()

CloudWeather::Receiver::~Receiver ( )
inline

Definition at line 47 of file CloudWeatherReceiver.h.

Member Function Documentation

◆ Latest()

MapPtr CloudWeather::Receiver::Latest ( )
inline

Definition at line 49 of file CloudWeatherReceiver.h.

Here is the caller graph for this function:

◆ Reset()

void CloudWeather::Receiver::Reset ( )
inline

Definition at line 48 of file CloudWeatherReceiver.h.

Here is the caller graph for this function:

◆ Run()

void CloudWeather::Receiver::Run ( )
inlineprivate

Definition at line 21 of file CloudWeatherReceiver.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Submit()

bool CloudWeather::Receiver::Submit ( const uint8_t * packet,
size_t size )
inline

Definition at line 50 of file CloudWeatherReceiver.h.

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ epoch

uint64_t CloudWeather::Receiver::epoch = 0
private

Definition at line 18 of file CloudWeatherReceiver.h.

◆ latest

MapPtr CloudWeather::Receiver::latest
private

Definition at line 17 of file CloudWeatherReceiver.h.

◆ mutex

std::mutex CloudWeather::Receiver::mutex
private

Definition at line 14 of file CloudWeatherReceiver.h.

◆ queue

std::deque<std::vector<uint8_t> > CloudWeather::Receiver::queue
private

Definition at line 16 of file CloudWeatherReceiver.h.

◆ stopping

bool CloudWeather::Receiver::stopping = false
private

Definition at line 19 of file CloudWeatherReceiver.h.

◆ wake

std::condition_variable CloudWeather::Receiver::wake
private

Definition at line 15 of file CloudWeatherReceiver.h.

◆ worker

std::thread CloudWeather::Receiver::worker
private

Definition at line 20 of file CloudWeatherReceiver.h.


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