ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/repos/HostStatus/HostStatus.hpp
Revision: 29
Committed: 2003-11-14T12:44:58-08:00 (21 years, 7 months ago) by Douglas Thrift
File size: 785 byte(s)
Log Message:
Suicide! PStreams is having trouble.

File Contents

# Content
1 // Host Status
2 //
3 // Douglas Thrift
4 //
5 // $Id$
6
7 #ifndef _HostStatus_hpp_
8 #define _HostStatus_hpp_
9
10 #include <iostream>
11 #include <string>
12 #include <sstream>
13 #include <map>
14 #include <cstdlib>
15 #include <ctime>
16
17 #include <pstream.h>
18
19 using namespace std;
20 using namespace redi;
21
22 inline string sgetenv(const string& name)
23 {
24 char* value = getenv(name.c_str());
25
26 return value != NULL ? value : "";
27 }
28
29 inline int sputenv(const string& name) { return putenv(name.c_str()); }
30 inline void sunsetenv(const string& name) { unsetenv(name.c_str()); }
31
32 class HostStatus
33 {
34 private:
35 multimap<string, string> cgi;
36 enum Format {page, table};
37 Format format;
38 void parse(const string& method);
39 void display(const string& method);
40 public:
41 HostStatus();
42 ~HostStatus() {}
43 };
44
45 #endif // _HostStatus_hpp_

Properties

Name Value
svn:eol-style native
svn:keywords Id