c++ constructor with para
protected:
bool useDefault;
std::string configDir;
std::string name;
DcsConfig::DcsConfig()
: useDefault(true), configDir("/ra/data"), name("default")
{
updateConfigFiles();
}
/* internal pass useDefault(true), configDir("/ra/data"), name("default") values into class
DcsConfig::DcsConfig(const std::string& config_dir, const std::string& root_name)
: useDefault(true), configDir(config_dir), name(root_name)
{
updateConfigFiles();
}
/*internal pass useDefault(true) into class
/*out put values const std::string& config_dir, const std::string& root_name for initialization