diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2015-03-08 19:38:15 +0100 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2015-03-08 19:38:15 +0100 |
commit | eecddf878f98bb921622a5a5bb2600aedb5a53fa (patch) | |
tree | 36c788ba073033e1ad1a2914b704a45f4d8c7ccd /apps/SoilMoistureIo.h | |
parent | 552b997007a24943429488a3cc46c3e649316947 (diff) | |
download | ble-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.h | 7 |
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 { |