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 19 by Douglas Thrift, 2003-11-10T19:46:19-08:00 vs.
Revision 900 by douglas, 2007-04-29T02:26:40-07:00

# Line 15 | Line 15
15   #include <map>
16   #include <cstdlib>
17   #include <ctime>
18 <
19 < using namespace std;
18 > #include <cstring>
19  
20   #include <sys/types.h>
21   #include <sys/stat.h>
# Line 30 | Line 29 | const char slash = '/';
29  
30   inline int mkdir(const char* path)
31   {
32 <   return mkdir(path, S_IRUSR | S_IWUSR | S_IXUSR);
32 >        return ::mkdir(path, S_IRUSR | S_IWUSR | S_IXUSR);
33   }
34  
35   #else
# Line 41 | Line 40 | const char slash = '\\';
40  
41   #endif
42  
43 < inline string sgetenv(const string& name)
43 > inline std::string sgetenv(const std::string& name)
44   {
45 <        char* value = getenv(name.c_str());
45 >        char* value = ::getenv(name.c_str());
46  
47          return value != NULL ? value : "";
48   }
49  
50 + class Host;
51 +
52   class HostUpdate
53   {
54   private:
55 <        multimap<string, string> cgi;
56 <        void parse(const string& method);
57 <        void update(const string& agent);
55 >        std::multimap<std::string, std::string> cgi;
56 >        bool host;
57 >        bool name;
58 >        bool address;
59 >        bool platform;
60 >        bool since;
61 >        void parse(const std::string& method);
62 >        void mode();
63 >        void update(const std::string& agent);
64          void display();
65 +        void display(const Host& host);
66   public:
67          HostUpdate();
68 <        ~HostUpdate();
68 >        ~HostUpdate() {}
69   };
70  
71   #endif // _HostUpdate_hpp_

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines