Esempio n. 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);
	}
}
Esempio n. 2
0
void colormanager::register_commands(configparser& cfgparser) {
	cfgparser.register_handler("color", this);
}