mirror of
https://github.com/trabucayre/openFPGALoader.git
synced 2026-08-30 18:02:38 +02:00
configBitstreamParser: add map to store file header
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user