Added multiblocks methods to data formatter

This commit is contained in:
Leonetienne
2022-05-27 03:00:34 +02:00
parent 8e04e91e88
commit 2ecf0cc427
3 changed files with 135 additions and 25 deletions

View File

@@ -20,6 +20,9 @@ class ModuleDataFormatter {
//! Will format a vector of blocks to a given iobase
static std::string FormatBlocks(const std::vector<Block>& blocks, const Configuration::IOBASE_FORMAT base);
//! Will format a string making up multiple block in a given iobase into a vector of block
static std::vector<Block> StringToBlocks(const std::string& str, const Configuration::IOBASE_FORMAT base);
private:
static std::string Bin2CustomBase(const std::string& bin, const std::vector<std::string>& customSet, std::size_t minLen, const std::string& seperator = "");