15 |
|
|
16 |
|
void Configurator::configurate() |
17 |
|
{ |
18 |
< |
// |
18 |
> |
if (config.hosts.count(host) < 2) |
19 |
> |
{ |
20 |
> |
cerr << program << ": No configuration for " << host << "\n"; |
21 |
> |
exit(1); |
22 |
> |
} |
23 |
> |
|
24 |
> |
for (multimap<string, string>::iterator itor = |
25 |
> |
config.hosts.lower_bound(host); itor != config.hosts.upper_bound(host); |
26 |
> |
itor++) |
27 |
> |
{ |
28 |
> |
string entry = itor->second; |
29 |
> |
|
30 |
> |
if (entry.find("passwd=") == 0) |
31 |
> |
{ |
32 |
> |
// |
33 |
> |
} |
34 |
> |
else if (entry.find("folder=") == 0) |
35 |
> |
{ |
36 |
> |
// |
37 |
> |
} |
38 |
> |
else |
39 |
> |
{ |
40 |
> |
cerr << program << ": Unknown configuration " << entry |
41 |
> |
<< ", ignored\n"; |
42 |
> |
} |
43 |
> |
} |
44 |
|
} |