From 3711a94f8b9e642e9c8233e8438e2f30ac1dedda Mon Sep 17 00:00:00 2001 From: Mario Fink Date: Thu, 23 Jul 2020 16:41:10 +0200 Subject: [PATCH] proper log managment, disabled --- lib/raweat.hpp | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/lib/raweat.hpp b/lib/raweat.hpp index a99dcfa..e7a2d51 100644 --- a/lib/raweat.hpp +++ b/lib/raweat.hpp @@ -74,7 +74,7 @@ private: public: // constructor - raw_eater(std::string rawfile) : rawfile_(rawfile) + raw_eater(std::string rawfile, bool showlog = false) : rawfile_(rawfile) { // open file std::ifstream fin(rawfile_.c_str(),std::ifstream::binary); @@ -88,11 +88,14 @@ public: // close file fin.close(); - // show raw data - this->show_buffer(); + if ( showlog ) + { + // show raw data + this->show_buffer(); - // display predefined markers - this->show_markers(); + // display predefined markers + this->show_markers(); + } // extract data corresponding to predefined markers from buffer find_markers(); @@ -101,7 +104,7 @@ public: split_segments(); // convert binary data to arrays of intrinsic data types - convert_data(true); + convert_data(showlog); } // destructor