configBitstreamParser: add map to store file header

This commit is contained in:
Gwenhael Goavec-Merou 2020-03-20 18:01:48 +01:00
parent d210d2c67e
commit 232b189286
2 changed files with 3 additions and 1 deletions

View File

@ -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;

View File

@ -4,6 +4,7 @@
#include <iostream>
#include <fstream>
#include <stdint.h>
#include <map>
class ConfigBitstreamParser {
public:
@ -28,6 +29,7 @@ class ConfigBitstreamParser {
bool _verbose;
std::ifstream _fd;
std::string _bit_data;
std::map<std::string, std::string> _hdr;
};
#endif