コード例 #1
0
void configcontainer::register_commands(configparser& cfgparser) {
	// this registers the config options defined above in the configuration parser
	// -> if the resp. config option is encountered, it is passed to the configcontainer
	for (auto cfg : config_data) {
		cfgparser.register_handler(cfg.first, this);
	}
}
コード例 #2
0
ファイル: colormanager.cpp プロジェクト: N8Fear/newsbeuter
void colormanager::register_commands(configparser& cfgparser) {
	cfgparser.register_handler("color", this);
}