openFPGALoader/src/bitparser.hpp

27 lines
485 B
C++
Raw Normal View History

2019-09-26 18:29:20 +02:00
#ifndef BITPARSER_H
#define BITPARSER_H
#include <iostream>
#include <fstream>
2019-09-26 18:29:20 +02:00
#include "configBitstreamParser.hpp"
class BitParser: public ConfigBitstreamParser {
2019-09-26 18:29:20 +02:00
public:
2020-08-19 16:53:49 +02:00
BitParser(const std::string &filename, bool verbose = false);
2019-09-26 18:29:20 +02:00
~BitParser();
2020-08-19 16:53:49 +02:00
int parse() override;
2019-09-26 18:29:20 +02:00
private:
int parseField();
2019-09-26 18:29:20 +02:00
std::string fieldA;
std::string part_name;
std::string date;
std::string hour;
std::string design_name;
std::string userID;
std::string toolVersion;
};
#endif