2019-09-26 18:29:20 +02:00
|
|
|
#ifndef BITPARSER_H
|
|
|
|
|
#define BITPARSER_H
|
|
|
|
|
|
|
|
|
|
#include <iostream>
|
2019-10-05 10:28:44 +02:00
|
|
|
#include <fstream>
|
2019-09-26 18:29:20 +02:00
|
|
|
|
2019-10-05 10:28:44 +02:00
|
|
|
#include "configBitstreamParser.hpp"
|
|
|
|
|
|
|
|
|
|
class BitParser: public ConfigBitstreamParser {
|
2019-09-26 18:29:20 +02:00
|
|
|
public:
|
2020-09-25 18:42:32 +02:00
|
|
|
BitParser(const std::string &filename, bool reverseOrder, 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:
|
2019-10-05 10:28:44 +02:00
|
|
|
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;
|
2020-09-25 18:42:32 +02:00
|
|
|
bool _reverseOrder;
|
2019-09-26 18:29:20 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
#endif
|