ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/proj/trunk/Spectre/Configurator.cpp
(Generate patch)

Comparing trunk/Spectre/Configurator.cpp (file contents):
Revision 161 by douglas, 2003-06-09T21:32:04-07:00 vs.
Revision 162 by douglas, 2003-06-09T22:01:14-07:00

# Line 15 | Line 15 | Configurator::Configurator(const string&
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   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines