proper log managment, disabled
This commit is contained in:
parent
4ebd965114
commit
3711a94f8b
@ -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();
|
||||||
|
|
||||||
|
if ( showlog )
|
||||||
|
{
|
||||||
// show raw data
|
// show raw data
|
||||||
this->show_buffer();
|
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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user