aboutsummaryrefslogtreecommitdiff
path: root/apps/SoilMoistureIo.h
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2015-03-08 19:38:15 +0100
committerTrygve Laugstøl <trygvis@inamo.no>2015-03-08 19:38:15 +0100
commiteecddf878f98bb921622a5a5bb2600aedb5a53fa (patch)
tree36c788ba073033e1ad1a2914b704a45f4d8c7ccd /apps/SoilMoistureIo.h
parent552b997007a24943429488a3cc46c3e649316947 (diff)
downloadble-toys-eecddf878f98bb921622a5a5bb2600aedb5a53fa.tar.gz
ble-toys-eecddf878f98bb921622a5a5bb2600aedb5a53fa.tar.bz2
ble-toys-eecddf878f98bb921622a5a5bb2600aedb5a53fa.tar.xz
ble-toys-eecddf878f98bb921622a5a5bb2600aedb5a53fa.zip
o Improved SQL output.
Diffstat (limited to 'apps/SoilMoistureIo.h')
-rw-r--r--apps/SoilMoistureIo.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/apps/SoilMoistureIo.h b/apps/SoilMoistureIo.h
index 4edf4f4..9a144e3 100644
--- a/apps/SoilMoistureIo.h
+++ b/apps/SoilMoistureIo.h
@@ -80,16 +80,17 @@ private:
class SqlSampleOutputStream : public SampleOutputStream {
public:
- SqlSampleOutputStream(ostream &stream);
+ SqlSampleOutputStream(ostream &stream, string table_name);
- SqlSampleOutputStream(ostream &stream, vector<string> fields);
+ SqlSampleOutputStream(ostream &stream, string table_name, vector<string> fields);
void write(Sample values);
private:
ostream &stream;
- bool filterFields;
+ bool filter_fields;
vector<string> fields;
+ const string table_name;
};
class CsvParser {