mirror of
https://github.com/trabucayre/openFPGALoader.git
synced 2026-08-31 10:16:11 +02:00
configBitstreamParser: external access to header keys/values
This commit is contained in:
@@ -14,6 +14,19 @@ class ConfigBitstreamParser {
|
||||
virtual int parse() = 0;
|
||||
uint8_t *getData() {return (uint8_t*)_bit_data.c_str();}
|
||||
int getLength() {return _bit_length;}
|
||||
|
||||
/**
|
||||
* \brief get header list of keys/values
|
||||
* \return list of couple keys/values
|
||||
*/
|
||||
std::map<std::string, std::string> getHeader() { return _hdr; }
|
||||
|
||||
/**
|
||||
* \brief get value in header list
|
||||
* \param[in] key: key value
|
||||
* \return associated value for the key
|
||||
*/
|
||||
std::string getHeaderVal(std::string key);
|
||||
|
||||
enum {
|
||||
ASCII_MODE = 0,
|
||||
|
||||
Reference in New Issue
Block a user