From 232b18928626584b5e0b63f213b17f6eca51523a Mon Sep 17 00:00:00 2001 From: Gwenhael Goavec-Merou Date: Fri, 20 Mar 2020 18:01:48 +0100 Subject: [PATCH] configBitstreamParser: add map to store file header --- src/configBitstreamParser.cpp | 2 +- src/configBitstreamParser.hpp | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/configBitstreamParser.cpp b/src/configBitstreamParser.cpp index c4b823d..4cb8a44 100644 --- a/src/configBitstreamParser.cpp +++ b/src/configBitstreamParser.cpp @@ -10,7 +10,7 @@ ConfigBitstreamParser::ConfigBitstreamParser(string filename, int mode, bool verbose): _filename(filename), _bit_length(0), _file_size(0), _verbose(verbose), _fd(filename, - ifstream::in | (ios_base::openmode)mode), _bit_data() + ifstream::in | (ios_base::openmode)mode), _bit_data(), _hdr() { if (!_fd.is_open()) { cerr << "Error: fail to open " << _filename << endl; diff --git a/src/configBitstreamParser.hpp b/src/configBitstreamParser.hpp index f001fc7..8744669 100644 --- a/src/configBitstreamParser.hpp +++ b/src/configBitstreamParser.hpp @@ -4,6 +4,7 @@ #include #include #include +#include class ConfigBitstreamParser { public: @@ -28,6 +29,7 @@ class ConfigBitstreamParser { bool _verbose; std::ifstream _fd; std::string _bit_data; + std::map _hdr; }; #endif