aboutsummaryrefslogtreecommitdiff
path: root/apps/sm-serial-read.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'apps/sm-serial-read.cpp')
-rw-r--r--apps/sm-serial-read.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/sm-serial-read.cpp b/apps/sm-serial-read.cpp
index c7fb695..c52e7f9 100644
--- a/apps/sm-serial-read.cpp
+++ b/apps/sm-serial-read.cpp
@@ -126,17 +126,17 @@ public:
unique_ptr<ostream> outputStream = unique_ptr<ostream>(&cout);
if (format == Format::JSON) {
- output = make_shared<JsonSampleOutputStream>(dict, std::move(outputStream));
+ output = make_shared<JsonSampleOutputStream>(std::move(outputStream), dict);
} else if (format == Format::SQL) {
- output = make_shared<SqlSampleOutputStream>(dict, std::move(outputStream), "raw");
+ output = make_shared<SqlSampleOutputStream>(std::move(outputStream), dict, "raw");
} else if (format == Format::PLAIN) {
- output = make_shared<CsvSampleOutputStream>(dict, std::move(outputStream));
+ output = make_shared<CsvSampleOutputStream>(std::move(outputStream), dict);
} else {
cerr << "Unsupported format: " << boost::lexical_cast<string>(format) << endl;
return EXIT_FAILURE;
}
- shared_ptr<CsvSampleParser> input = make_shared<CsvSampleParser>(dict, output);
+ shared_ptr<CsvSampleParser> input = make_shared<CsvSampleParser>(output, dict);
port_handler(port_name, port, input).run();