diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2016-10-30 11:31:56 +0100 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2016-10-30 11:31:56 +0100 |
commit | f21352094c0949b643721ee5387fefae0cdab507 (patch) | |
tree | bae2813b66308d1478f1537fbd5acb9ec1af34b5 /src/ConfigParser.cpp | |
parent | b073c0eb1e5bf676a24f225779cc31d3c9f21fd4 (diff) | |
download | dabmux-f21352094c0949b643721ee5387fefae0cdab507.tar.gz dabmux-f21352094c0949b643721ee5387fefae0cdab507.tar.bz2 dabmux-f21352094c0949b643721ee5387fefae0cdab507.zip |
Move hexparse to utils and add default PRBS poly
Diffstat (limited to 'src/ConfigParser.cpp')
-rw-r--r-- | src/ConfigParser.cpp | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/src/ConfigParser.cpp b/src/ConfigParser.cpp index 8e5fed1..e68f98f 100644 --- a/src/ConfigParser.cpp +++ b/src/ConfigParser.cpp @@ -112,24 +112,6 @@ static void setup_subchannel_from_ptree(DabSubchannel* subchan, std::shared_ptr<dabEnsemble> ensemble, const string& subchanuid); -/* a helper class to parse hexadecimal ids */ -static int hexparse(std::string input) -{ - int value; - if (input.find("0x") == 0) { - value = strtoll(input.c_str() + 2, nullptr, 16); - } - else { - value = strtoll(input.c_str(), nullptr, 10); - } - - if (errno == ERANGE) { - throw runtime_error("hex conversion: value out of range"); - } - - return value; -} - static uint16_t get_announcement_flag_from_ptree( boost::property_tree::ptree& pt ) |