From 6bac290b92b635be047237b880144dbc163df6ec Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Sun, 22 Mar 2015 18:12:48 +0100 Subject: o Splitting out io parts into trygvis::sensor::io. --- apps/sample-convert.cpp | 6 ++++-- apps/sample-select.cpp | 2 +- apps/sample-timestamp.cpp | 4 +++- apps/sm-get-value.cpp | 2 +- apps/sm-serial-read-all.cpp | 4 +++- apps/sm-serial-read.cpp | 4 +++- 6 files changed, 15 insertions(+), 7 deletions(-) (limited to 'apps') diff --git a/apps/sample-convert.cpp b/apps/sample-convert.cpp index 6ce83e8..0c3aa9a 100644 --- a/apps/sample-convert.cpp +++ b/apps/sample-convert.cpp @@ -1,4 +1,5 @@ -#include "trygvis/SensorSample.h" +#include "trygvis/sensor.h" +#include "trygvis/sensor/io.h" #include "json.hpp" #include "apps.h" #include @@ -10,6 +11,7 @@ namespace apps { using namespace std; using namespace trygvis::apps; using namespace trygvis::sensor; +using namespace trygvis::sensor::io; using boost::tokenizer; namespace po = boost::program_options; @@ -66,7 +68,7 @@ public: } std::vector options; - trygvis::sensor::timestamp_field tf(timestamp_field); + trygvis::sensor::io::timestamp_field tf(timestamp_field); if (!timestamp_field.empty()) { options.push_back(&tf); diff --git a/apps/sample-select.cpp b/apps/sample-select.cpp index fc50f41..d1e6d0e 100644 --- a/apps/sample-select.cpp +++ b/apps/sample-select.cpp @@ -1,4 +1,4 @@ -#include "trygvis/SensorSample.h" +#include "trygvis/sensor.h" #include "apps.h" #include diff --git a/apps/sample-timestamp.cpp b/apps/sample-timestamp.cpp index c95f7a3..2fde1b6 100644 --- a/apps/sample-timestamp.cpp +++ b/apps/sample-timestamp.cpp @@ -1,4 +1,5 @@ -#include "trygvis/SensorSample.h" +#include "trygvis/sensor.h" +#include "trygvis/sensor/io.h" #include "apps.h" #include #include @@ -9,6 +10,7 @@ namespace apps { using namespace std; using namespace trygvis::apps; using namespace trygvis::sensor; +using namespace trygvis::sensor::io; namespace po = boost::program_options; enum class time_resolution { diff --git a/apps/sm-get-value.cpp b/apps/sm-get-value.cpp index 25f1c3e..115c6ae 100644 --- a/apps/sm-get-value.cpp +++ b/apps/sm-get-value.cpp @@ -5,7 +5,7 @@ #include #include "ble/Bluetooth.h" #include "SoilMoisture.h" -#include "trygvis/SensorSample.h" +#include "trygvis/sensor.h" #include "json.hpp" #include "apps.h" diff --git a/apps/sm-serial-read-all.cpp b/apps/sm-serial-read-all.cpp index eb1f112..0c5e54a 100644 --- a/apps/sm-serial-read-all.cpp +++ b/apps/sm-serial-read-all.cpp @@ -1,4 +1,5 @@ -#include "trygvis/SensorSample.h" +#include "trygvis/sensor.h" +#include "trygvis/sensor/io.h" #include "json.hpp" #include "apps.h" #include @@ -12,6 +13,7 @@ using namespace std; using namespace std::chrono; using namespace trygvis::apps; using namespace trygvis::sensor; +using namespace trygvis::sensor::io; namespace po = boost::program_options; using json = nlohmann::json; diff --git a/apps/sm-serial-read.cpp b/apps/sm-serial-read.cpp index 68cdea7..8a6fd36 100644 --- a/apps/sm-serial-read.cpp +++ b/apps/sm-serial-read.cpp @@ -1,4 +1,5 @@ -#include "trygvis/SensorSample.h" +#include "trygvis/sensor.h" +#include "trygvis/sensor/io.h" #include "json.hpp" #include "apps.h" #include @@ -13,6 +14,7 @@ using namespace std; using namespace std::chrono; using namespace trygvis::apps; using namespace trygvis::sensor; +using namespace trygvis::sensor::io; namespace po = boost::program_options; using json = nlohmann::json; -- cgit v1.2.3