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

Comparing HostUpdate/HostUpdate.hpp (file contents):
Revision 1 by Douglas Thrift, 2003-11-05T17:58:20-08:00 vs.
Revision 17 by Douglas Thrift, 2003-11-10T11:08:33-08:00

# Line 1 | Line 1
1 < // Host Update
2 < //
3 < // Douglas Thrift
4 < //
5 < // $Id$
6 <
7 < #ifndef _HostUpdate_h_
8 < #define _HostUpdate_h_
9 <
10 < #include <iostream>
11 < #include <cgicc/Cgicc.h>
12 <
13 < using namespace std;
14 < using namespace cgicc;
15 <
16 < class HostUpdate
17 < {
18 < private:
19 <        Cgicc cgi;
20 < public:
21 <        HostUpdate();
22 <        ~HostUpdate();
23 < };
24 <
25 < #endif // _HostUpdate_h_
1 > // Host Update
2 > //
3 > // Douglas Thrift
4 > //
5 > // $Id$
6 >
7 > #ifndef _HostUpdate_hpp_
8 > #define _HostUpdate_hpp_
9 >
10 > #include <iostream>
11 > #include <fstream>
12 > #include <string>
13 > #include <sstream>
14 > #include <set>
15 > #include <map>
16 > #include <cstdlib>
17 >
18 > using namespace std;
19 >
20 > #include <sys/types.h>
21 > #include <sys/stat.h>
22 >
23 > #ifndef _WIN32
24 >
25 > #include <unistd.h>
26 > #include <dirent.h>
27 >
28 > inline int mkdir(const char* path)
29 > {
30 >   return mkdir(path, S_IRUSR | S_IWUSR | S_IXUSR);
31 > }
32 >
33 > #else
34 >
35 > #include <direct.h>
36 >
37 > #endif
38 >
39 > inline string sgetenv(const string& name)
40 > {
41 >        char* value = getenv(name.c_str());
42 >
43 >        return value != NULL ? value : "";
44 > }
45 >
46 > class HostUpdate
47 > {
48 > private:
49 >        multimap<string, string> cgi;
50 >        void parse(const string& method);
51 >        void update(const string& agent);
52 >        void display();
53 > public:
54 >        HostUpdate();
55 >        ~HostUpdate();
56 > };
57 >
58 > #endif // _HostUpdate_hpp_

Comparing HostUpdate/HostUpdate.hpp (property svn:eol-style):
Revision 1 by Douglas Thrift, 2003-11-05T17:58:20-08:00 vs.
Revision 17 by Douglas Thrift, 2003-11-10T11:08:33-08:00

# Line 0 | Line 1
1 + native

Comparing HostUpdate/HostUpdate.hpp (property svn:keywords):
Revision 1 by Douglas Thrift, 2003-11-05T17:58:20-08:00 vs.
Revision 17 by Douglas Thrift, 2003-11-10T11:08:33-08:00

# Line 0 | Line 1
1 + Id

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines