aboutsummaryrefslogtreecommitdiff
path: root/apps/SoilMoistureIo.h
diff options
context:
space:
mode:
Diffstat (limited to 'apps/SoilMoistureIo.h')
-rw-r--r--apps/SoilMoistureIo.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/SoilMoistureIo.h b/apps/SoilMoistureIo.h
index 0d93d2a..5324114 100644
--- a/apps/SoilMoistureIo.h
+++ b/apps/SoilMoistureIo.h
@@ -24,6 +24,7 @@ using o = boost::optional<A>;
enum class sample_format_type {
AUTO,
CSV,
+ KEY_VALUE,
JSON,
SQL
};
@@ -296,11 +297,10 @@ protected:
}
};
-// TODO: rename to "KeyValueParser", this is not CSV.
-class CsvSampleParser : public SampleStreamParser {
+class KeyValueSampleParser : public SampleStreamParser {
public:
- CsvSampleParser(shared_ptr<SampleOutputStream> output, KeyDictionary &dict) :
+ KeyValueSampleParser(shared_ptr<SampleOutputStream> output, KeyDictionary &dict) :
SampleStreamParser(sample_format_type::CSV), output(output), dict(dict),
line(make_shared<vector<uint8_t>>()) {
}
@@ -322,7 +322,7 @@ public:
private:
unique_ptr<SampleStreamParser> parser;
- unique_ptr<CsvSampleParser> csvParser;
+ unique_ptr<KeyValueSampleParser> keyValueParser;
public:
virtual void process(mutable_buffers_1 buffer);
};