proper log managment, disabled

This commit is contained in:
Mario Fink 2020-07-23 16:41:10 +02:00
parent 4ebd965114
commit 3711a94f8b

View File

@ -74,7 +74,7 @@ private:
public: public:
// constructor // constructor
raw_eater(std::string rawfile) : rawfile_(rawfile) raw_eater(std::string rawfile, bool showlog = false) : rawfile_(rawfile)
{ {
// open file // open file
std::ifstream fin(rawfile_.c_str(),std::ifstream::binary); std::ifstream fin(rawfile_.c_str(),std::ifstream::binary);
@ -88,11 +88,14 @@ public:
// close file // close file
fin.close(); fin.close();
// show raw data if ( showlog )
this->show_buffer(); {
// show raw data
this->show_buffer();
// display predefined markers // display predefined markers
this->show_markers(); this->show_markers();
}
// extract data corresponding to predefined markers from buffer // extract data corresponding to predefined markers from buffer
find_markers(); find_markers();
@ -101,7 +104,7 @@ public:
split_segments(); split_segments();
// convert binary data to arrays of intrinsic data types // convert binary data to arrays of intrinsic data types
convert_data(true); convert_data(showlog);
} }
// destructor // destructor