greenhouse
include
database.h
Go to the documentation of this file.
1
#pragma once
2
3
#include <string>
4
#include <vector>
5
6
struct
Row
{
7
std::string
temperature
;
8
std::string
dewity
;
9
std::string
humidity
;
10
};
11
12
class
Database
{
13
public
:
14
Database
();
19
std::vector<Row>
all
();
24
Row
latest
();
31
void
append
(
Row
r);
36
void
flush
();
37
};
Database
Definition:
database.h:12
Database::append
void append(Row r)
Definition:
database.cpp:20
Database::Database
Database()
Definition:
database.cpp:8
Database::all
std::vector< Row > all()
Definition:
database.cpp:12
Database::latest
Row latest()
Definition:
database.cpp:16
Database::flush
void flush()
Definition:
database.cpp:26
Row
Definition:
database.h:6
Row::temperature
std::string temperature
Definition:
database.h:7
Row::humidity
std::string humidity
Definition:
database.h:9
Row::dewity
std::string dewity
Definition:
database.h:8
Generated on Mon Aug 16 2021 20:30:21 for greenhouse by
1.9.1