aboutsummaryrefslogtreecommitdiff
path: root/apps/sample-select.h
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2015-07-19 20:02:00 +0200
committerTrygve Laugstøl <trygvis@inamo.no>2015-07-19 20:02:00 +0200
commit0374af511d7efdb856af372f126e66e5a78841d7 (patch)
treeb63444108dbccf7ce1ddd3c0bb8ab9ac4f1aebaa /apps/sample-select.h
parentbfcc6e18af33d21ae3ae23def873fa6415045bec (diff)
downloadble-toys-0374af511d7efdb856af372f126e66e5a78841d7.tar.gz
ble-toys-0374af511d7efdb856af372f126e66e5a78841d7.tar.bz2
ble-toys-0374af511d7efdb856af372f126e66e5a78841d7.tar.xz
ble-toys-0374af511d7efdb856af372f126e66e5a78841d7.zip
o Applying clang-format to all apps.
Diffstat (limited to 'apps/sample-select.h')
-rw-r--r--apps/sample-select.h11
1 files changed, 5 insertions, 6 deletions
diff --git a/apps/sample-select.h b/apps/sample-select.h
index 60bda32..8ae5cc3 100644
--- a/apps/sample-select.h
+++ b/apps/sample-select.h
@@ -12,7 +12,6 @@ using boost::tokenizer;
namespace po = boost::program_options;
class sample_select : public app {
-
private:
string fields;
@@ -23,8 +22,7 @@ public:
~sample_select() = default;
void add_options(po::options_description_easy_init &options) override {
- options
- ("fields", po::value<string>(&fields)->required());
+ options("fields", po::value<string>(&fields)->required());
}
int main(app_execution &execution) override {
@@ -94,9 +92,11 @@ public:
}
vector<sample_output_stream_option*> options = {};
- unique_ptr<SampleOutputStream> unique_output_stream = open_sample_output_stream(shared_ptr<ostream>(&cout, noop_deleter), dict, parser->type(), options);
+ unique_ptr<SampleOutputStream> unique_output_stream = open_sample_output_stream(shared_ptr<ostream>(&cout,
+ noop_deleter), dict, parser->type(), options);
shared_ptr<SampleOutputStream> output_stream{std::move(unique_output_stream)};
- shared_ptr<SampleOutputStream> p = make_shared<TimestampFixingSampleOutputStream>(output_stream, dict, timestamp_name, relative_name, relative_resolution, start_time);
+ shared_ptr<SampleOutputStream> p = make_shared<TimestampFixingSampleOutputStream>(output_stream, dict,
+ timestamp_name, relative_name, relative_resolution, start_time);
parser = open_sample_stream_parser(p, dict, parser->type());
int recordCount = 0;
@@ -115,6 +115,5 @@ public:
return EXIT_SUCCESS;
};
};
-
}
}