include/BrDomainCommon.H

Go to the documentation of this file.
00001 /* ${copyright}$ */
00002 /* $Id: BrDomainCommon.H 668 2006-04-12 15:18:01Z cesar $ */
00007 #ifndef __BR_DOMAIN_COMMON_H__
00008 #define __BR_DOMAIN_COMMON_H__
00009 
00010 // DON'T use "set", tests fail
00011 // USE "list" or "vector"
00012 #define PENDING_CONTAINER vector
00013 
00014 #if PENDING_CONTAINER == list
00015 #include <list>
00016 #elif PENDING_CONTAINER == set
00017 #include <set>
00018 #elif PENDING_CONTAINER == vector
00019 #include <vector>
00020 #endif
00021 using std::PENDING_CONTAINER;
00022 
00023 struct ReleaseProcessFlags {
00024   int flag1;
00025   int flag2;
00026   int flag3;
00027   
00028   ReleaseProcessFlags()
00029   {
00030     flag1 = -1;
00031     flag2 = -1;
00032     flag3 = -1;
00033   }
00034 };
00035 
00036 struct PendingDoc {
00037   string status;
00038   string docType;
00039   string limit;
00040   string description;
00041   string description_lang;
00042 #if PENDING_CONTAINER == set
00043   bool operator<(const PendingDoc &p) const {
00044     return limit < p.limit;
00045   }
00046 #endif
00047 };
00048 
00049 struct PendingDns {
00050   string status;
00051   string hostName;
00052   string limit;
00053 #if PENDING_CONTAINER == set
00054   bool operator<(const PendingDns &p) const {
00055     return limit < p.limit;
00056   }
00057 #endif
00058 };
00059 
00060 struct PendingReleaseProc {
00061   string status;
00062   string limit;
00063 };
00064 
00065 struct HostStatus {
00066   string host;
00067   string status;
00068   bool operator<(const HostStatus &hs) const {
00069     return status < hs.status;
00070   }
00071 };
00072 
00073 #endif //__BR_DOMAIN_COMMON_H__

Generated on Thu Jun 8 17:40:00 2006 for libepp_nicbr by  doxygen 1.4.6