// Spectre Samba Mounter // // Douglas Thrift // // Configurator.cpp #include "Configurator.h" Configurator::Configurator(const string& host) { this->host = host; configurate(); } void Configurator::configurate() { if (config.hosts.count(host) < 2) { cerr << program << ": No configuration for " << host << "\n"; exit(1); } for (multimap::iterator itor = config.hosts.lower_bound(host); itor != config.hosts.upper_bound(host); itor++) { string entry = itor->second; if (entry.find("passwd=") == 0) { // } else if (entry.find("folder=") == 0) { // } else { cerr << program << ": Unknown configuration " << entry << ", ignored\n"; } } }