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

Comparing HostStatus/HostStatus.hpp (file contents):
Revision 34 by Douglas Thrift, 2003-11-15T01:06:43-08:00 vs.
Revision 38 by Douglas Thrift, 2003-11-15T20:23:23-08:00

# Line 42 | Line 42 | inline int sputenv(const string& name)
42  
43   inline void sunsetenv(const string& name) { unsetenv(name.c_str()); }
44  
45 + #ifdef __CYGWIN__
46 +
47 + inline time_t timegm(struct tm* time)
48 + {
49 +        string zone = sgetenv("TZ");
50 +
51 +        sputenv("TZ=");
52 +        tzset();
53 +
54 +        time_t when = mktime(time);
55 +
56 +        sputenv("TZ=" + zone);
57 +        tzset();
58 +
59 +        return when;
60 + }
61 +
62 + #endif
63 +
64   class HostStatus
65   {
66   private:
67          multimap<string, string> cgi;
68 <        enum Format {page, table};
50 <        Format format;
68 >        bool page;
69          void parse(const string& method);
70          void display(const string& method);
71 <        void header() {}
72 <        void footer() {}
71 >        void header();
72 >        void footer();
73   public:
74          HostStatus();
75          ~HostStatus() {}

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines