include/BrDomainCheckRsp.H

Go to the documentation of this file.
00001 /* ${copyright}$ */
00002 /* $Id: BrDomainCheckRsp.H 648 2006-03-31 17:56:22Z cesar $ */
00007 #ifndef __BR_DOMAIN_CHECK_RSP_H__
00008 #define __BR_DOMAIN_CHECK_RSP_H__
00009 
00010 #include <set>
00011 
00012 #include "DomainCheckRsp.H"
00013 
00014 using std::set;
00015 
00016 LIBEPP_NICBR_NS_BEGIN
00017 
00019 class BrDomainCheckRsp : public DomainCheckRsp
00020 {
00021 public:
00022 
00023   struct Unavailability {
00024     bool hasConcurrent;
00025     bool inReleaseProcess;
00026     string equivalentName;
00027     string organization;
00028     set<int> tickets;
00029   };
00030 
00032   BrDomainCheckRsp(bool reset = true) : DomainCheckRsp(false)
00033   {
00034     if (reset) {
00035       this->reset();
00036     }
00037   }
00038   
00040   void copy_parent_data(DomainCheckRsp &parent) 
00041   {
00042     _availability_list = parent.get_availability_list();        
00043   }
00044 
00046 
00050   void insert_unavailability(const string &domain,
00051                              struct Unavailability unavail);
00052   
00054 
00057   map< string, Unavailability, less<string> > get_unavailability_list();
00058 
00060   void reset() 
00061   {
00062     DomainCheckRsp::reset();
00063     _unavailability_list.clear();
00064   }
00065 
00066 protected:
00068   map< string, Unavailability, less<string> > _unavailability_list ;
00069 
00070 };
00071 
00072 LIBEPP_NICBR_NS_END
00073 #endif //__BR_DOMAIN_CHECK_RSP_H__

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