From 1f2c7aae9fdd39a478944ccda5c9e82d76ab5db6 Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Fri, 1 Sep 2017 13:59:25 +0200 Subject: o Renaming SampleOutputStream to SampleConsumer. o Some c++ style fixes. --- apps/sm-get-value.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'apps/sm-get-value.cpp') diff --git a/apps/sm-get-value.cpp b/apps/sm-get-value.cpp index 42f5da3..483df70 100644 --- a/apps/sm-get-value.cpp +++ b/apps/sm-get-value.cpp @@ -109,7 +109,7 @@ public: auto epoch = system_clock::now().time_since_epoch(); auto timestamp = duration_cast(epoch).count(); auto unique_output_stream = open_sample_output_stream(shared_ptr(&cout, noop_deleter), dict, format); - shared_ptr output_stream{std::move(unique_output_stream)}; + shared_ptr output_stream{std::move(unique_output_stream)}; auto sample = SampleRecord(dict) .set(hostname_key, get_hostname()) @@ -138,7 +138,7 @@ public: i++; } - output_stream->write(sample); + output_stream->onSample(sample); } void withConnection(sample_format_type format, shared_ptr gatt) { -- cgit v1.2.3