include/ContactCheckRsp.H

Go to the documentation of this file.
00001 /* ${copyright}$ */
00002 /* $Id: ContactCheckRsp.H 481 2006-02-23 16:36:07Z eduardo $ */
00007 #ifndef __CONTACT_CHECK_RSP_H__
00008 #define __CONTACT_CHECK_RSP_H__
00009 
00010 #include <string>
00011 #include <map>
00012 
00013 #include "libepp_nicbr.H"
00014 
00015 #include "Response.H"
00016 
00017 using std::string;
00018 using std::map;
00019 using std::less;
00020 
00021 LIBEPP_NICBR_NS_BEGIN
00022 
00024 class ContactCheckRsp : public Response
00025 {
00026 public:
00027   
00028   struct Availability {
00029     string available;
00030     string reason;
00031   };
00032   
00034   ContactCheckRsp(bool reset = true) : Response(false)
00035   {
00036     if (reset) {
00037       this->reset();
00038     }
00039   }
00040 
00042 
00047   void insert_availability(const string &id, 
00048                            const string &available,
00049                            const string &reason);
00050   
00052 
00055   map< string, Availability, less<string> > get_availability_list();
00056 
00058   void reset() 
00059   { 
00060     Response::reset();
00061     _availability_list.clear();
00062   }
00063   
00064 protected:
00066   map< string, Availability, less<string> > _availability_list;
00067   
00068 };
00069 
00070 LIBEPP_NICBR_NS_END
00071 #endif //__CONTACT_CHECK_RSP_H__

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