libepp_nicbr
BrDomainCommon.H
Go to the documentation of this file.
1 /* ${copyright}$ */
2 /* $Id: BrDomainCommon.H 1086 2010-12-10 13:07:28Z eduardo $ */
7 #ifndef __BR_DOMAIN_COMMON_H__
8 #define __BR_DOMAIN_COMMON_H__
9 
10 // DON'T use "set", tests fail
11 // USE "list" or "vector"
12 #define PENDING_CONTAINER vector
13 
14 #include <string>
15 
16 #if PENDING_CONTAINER == list
17 #include <list>
18 #elif PENDING_CONTAINER == set
19 #include <set>
20 #elif PENDING_CONTAINER == vector
21 #include <vector>
22 #endif
23 using std::PENDING_CONTAINER;
24 using std::string;
25 
27  int flag1;
28  int flag2;
29  int flag3;
30 
32  {
33  flag1 = -1;
34  flag2 = -1;
35  flag3 = -1;
36  }
37 };
38 
39 struct PendingDoc {
40  string status;
41  string docType;
42  string limit;
43  string description;
44  string description_lang;
45 #if PENDING_CONTAINER == set
46  bool operator<(const PendingDoc &p) const {
47  return limit < p.limit;
48  }
49 #endif
50 };
51 
52 struct PendingDns {
53  string status;
54  string hostName;
55  string limit;
56 #if PENDING_CONTAINER == set
57  bool operator<(const PendingDns &p) const {
58  return limit < p.limit;
59  }
60 #endif
61 };
62 
64  string status;
65  string limit;
66 };
67 
68 struct HostStatus {
69  string host;
70  string status;
71  bool operator<(const HostStatus &hs) const {
72  return host < hs.host;
73  }
74 };
75 
76 #endif //__BR_DOMAIN_COMMON_H__
Definition: BrDomainCommon.H:52
Definition: BrDomainCommon.H:39
Definition: BrDomainCommon.H:26
Definition: BrDomainCommon.H:63
Definition: BrDomainCommon.H:68