44 for (
const auto& i : section) {
45 if (i.first ==
"user") {
47 user = i.second.get_value<std::string>(
"user");
52 catch (
const boost::property_tree::ptree_error&) {
56 else if (i.first ==
"group") {
58 group = i.second.get_value<std::string>(
"group");
63 catch (
const boost::property_tree::ptree_error&) {
void addSectionHandler(const std::string §ionName, ConfigSectionHandler subscriber)
setup notification of configuration file sections
configuration file parsing utility
void setConfigFile(ConfigFile &config)
boost::property_tree::ptree ConfigSection
a config file section
Copyright (c) 2014-2015, Regents of the University of California, Arizona Board of Regents...
static void initialize(const std::string &userName, const std::string &groupName)
static void onConfig(const ConfigSection §ion, bool isDryRun, const std::string &)