ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/repos/Smersh/Smersh.hpp
(Generate patch)

Comparing Smersh/Smersh.hpp (file contents):
Revision 165 by Douglas Thrift, 2004-06-18T01:38:55-07:00 vs.
Revision 166 by Douglas Thrift, 2004-06-18T22:24:07-07:00

# Line 12 | Line 12
12   #include <sstream>
13   #include <vector>
14   #include <map>
15 + #include <cctype>
16  
17   using namespace std;
18  
# Line 24 | Line 25 | inline string sgetenv(const string& name
25          return value != NULL ? value : "";
26   }
27  
28 + inline int sputenv(const string& env)
29 + {
30 +        istringstream input(env);
31 +        string name, value;
32 +
33 +        getline(input, name, '=');
34 +        getline(input, value);
35 +
36 +        return setenv(name.c_str(), value.c_str(), true);
37 + }
38 +
39 + inline void sunsetenv(const string& name) { unsetenv(name.c_str()); }
40 +
41 + class Person;
42 +
43   class Smersh
44   {
45   private:
46          multimap<string, string> cgi;
47 <        void parse(const string& method);
47 >        void parse(istream& sin);
48 >        void smersh(ostream& sout);
49 >        void output(ostream& sout, const vector<Person>& people);
50   public:
51 <        Smersh(ostream& sout = cout);
51 >        Smersh(istream& sin = cin, ostream& sout = cout);
52          ~Smersh() {}
53   };
54  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines