00001
00002
00007 #ifndef __BR_DOMAIN_COMMON_H__
00008 #define __BR_DOMAIN_COMMON_H__
00009
00010
00011
00012 #define PENDING_CONTAINER vector
00013
00014 #include <string>
00015
00016 #if PENDING_CONTAINER == list
00017 #include <list>
00018 #elif PENDING_CONTAINER == set
00019 #include <set>
00020 #elif PENDING_CONTAINER == vector
00021 #include <vector>
00022 #endif
00023 using std::PENDING_CONTAINER;
00024 using std::string;
00025
00026 struct ReleaseProcessFlags {
00027 int flag1;
00028 int flag2;
00029 int flag3;
00030
00031 ReleaseProcessFlags()
00032 {
00033 flag1 = -1;
00034 flag2 = -1;
00035 flag3 = -1;
00036 }
00037 };
00038
00039 struct PendingDoc {
00040 string status;
00041 string docType;
00042 string limit;
00043 string description;
00044 string description_lang;
00045 #if PENDING_CONTAINER == set
00046 bool operator<(const PendingDoc &p) const {
00047 return limit < p.limit;
00048 }
00049 #endif
00050 };
00051
00052 struct PendingDns {
00053 string status;
00054 string hostName;
00055 string limit;
00056 #if PENDING_CONTAINER == set
00057 bool operator<(const PendingDns &p) const {
00058 return limit < p.limit;
00059 }
00060 #endif
00061 };
00062
00063 struct PendingReleaseProc {
00064 string status;
00065 string limit;
00066 };
00067
00068 struct HostStatus {
00069 string host;
00070 string status;
00071 bool operator<(const HostStatus &hs) const {
00072 return host < hs.host;
00073 }
00074 };
00075
00076 #endif //__BR_DOMAIN_COMMON_H__