aboutsummaryrefslogtreecommitdiff
path: root/apps/SoilMoistureIo.h
diff options
context:
space:
mode:
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 {