greenhouse
|
#include <database.h>
Public Member Functions | |
Database () | |
std::vector< Row > | all () |
Row | latest () |
void | append (Row r) |
void | flush () |
Definition at line 12 of file database.h.
Database::Database | ( | ) |
Definition at line 8 of file database.cpp.
References store.
std::vector< Row > Database::all | ( | ) |
Get all entries
std::vector<Row> |
Definition at line 12 of file database.cpp.
References store.
void Database::append | ( | Row | r | ) |
Append a new row
Row |
void |
Definition at line 20 of file database.cpp.
References Row::dewity, Row::humidity, store, and Row::temperature.
Referenced by WebServer::tick().
void Database::flush | ( | ) |
Row Database::latest | ( | ) |
Get the latest entry
Row |
Definition at line 16 of file database.cpp.
References store.