17 #ifndef HH_SENF_Socket_Protocols_DVB_DVBConfigParser_ 18 #define HH_SENF_Socket_Protocols_DVB_DVBConfigParser_ 1 23 #include <boost/tokenizer.hpp> 24 #include <linux/dvb/frontend.h> 31 std::map<std::string, fe_spectral_inversion_t> inversion;
32 std::map<std::string, fe_bandwidth_t> bandwidth;
33 std::map<std::string, fe_code_rate_t> code_rate;
34 std::map<std::string, fe_guard_interval_t> guard_interval;
35 std::map<std::string, fe_hierarchy_t> hierarchy;
36 std::map<std::string, fe_modulation_t> modulation;
37 std::map<std::string, fe_transmit_mode_t> transmit_mode;
40 static const DVBParams params;
41 typedef boost::tokenizer<boost::char_separator<char> > tokenizer;
44 DVBConfigParser(fe_type_t type_,
const std::string & configFilePath =
"");
53 std::string configFilePath;
54 std::ifstream configFile;
55 void initConfigFile(std::string _configFilePath);
57 dvb_frontend_parameters getFrontendParamDVB_T(
const tokenizer & tokens);
58 dvb_frontend_parameters getFrontendParamDVB_C(
const tokenizer & tokens);
59 dvb_frontend_parameters getFrontendParamDVB_S(
const tokenizer & tokens);
DVBConfigParser(fe_type_t type_, const std::string &configFilePath="")
dvb_frontend_parameters getFrontendParam(std::string configLine)
std::string getConfigLine(std::string channel)