From eecddf878f98bb921622a5a5bb2600aedb5a53fa Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Sun, 8 Mar 2015 19:38:15 +0100 Subject: o Improved SQL output. --- apps/SoilMoistureIo.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'apps/SoilMoistureIo.h') 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 fields); + SqlSampleOutputStream(ostream &stream, string table_name, vector fields); void write(Sample values); private: ostream &stream; - bool filterFields; + bool filter_fields; vector fields; + const string table_name; }; class CsvParser { -- cgit v1.2.3