aboutsummaryrefslogtreecommitdiff
path: root/apps/sm-serial-read.cpp
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2015-03-17 23:02:23 +0100
committerTrygve Laugstøl <trygvis@inamo.no>2015-03-17 23:02:23 +0100
commit225ed55918377ba2b53bb535cb636bfae8fc1ab4 (patch)
tree56ef2a8ceb9d11344a2a26a71a1f10b0cf2eb4bb /apps/sm-serial-read.cpp
parent7edc4328bfd5eee557108ebdb4243ca06914c41e (diff)
downloadble-toys-225ed55918377ba2b53bb535cb636bfae8fc1ab4.tar.gz
ble-toys-225ed55918377ba2b53bb535cb636bfae8fc1ab4.tar.bz2
ble-toys-225ed55918377ba2b53bb535cb636bfae8fc1ab4.tar.xz
ble-toys-225ed55918377ba2b53bb535cb636bfae8fc1ab4.zip
o Renaming CsvSampleParser to KeyValueSampleParser.
Diffstat (limited to 'apps/sm-serial-read.cpp')
-rw-r--r--apps/sm-serial-read.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/sm-serial-read.cpp b/apps/sm-serial-read.cpp
index 0d0bfe6..10981e0 100644
--- a/apps/sm-serial-read.cpp
+++ b/apps/sm-serial-read.cpp
@@ -59,7 +59,7 @@ string hostname = get_hostname();
class port_handler {
public:
- port_handler(string device, serial_port &serial_port, shared_ptr<CsvSampleParser> input) :
+ port_handler(string device, serial_port &serial_port, shared_ptr<KeyValueSampleParser> input) :
device(device), port(serial_port), input(input) {
}
@@ -84,7 +84,7 @@ private:
uint8_t data[size];
mutable_buffers_1 buffer = boost::asio::buffer(data, size);
- shared_ptr<CsvSampleParser> input;
+ shared_ptr<KeyValueSampleParser> input;
};
class sm_serial_read : public app {
@@ -136,7 +136,7 @@ public:
return EXIT_FAILURE;
}
- shared_ptr<CsvSampleParser> input = make_shared<CsvSampleParser>(output, dict);
+ shared_ptr<KeyValueSampleParser> input = make_shared<KeyValueSampleParser>(output, dict);
port_handler(port_name, port, input).run();