xorp

finder_event_notifier_xif.hh

00001 /*
00002  * obj/i386-pc-mingw32/xrl/interfaces/finder_event_notifier_xif.hh
00003  * vim:set sts=4 ts=8 ft=cpp:
00004  *
00005  * Copyright (c) 2001-2010 XORP, Inc and Others
00006  * See the XORP LICENSE.lgpl file for licensing, conditions, and warranties
00007  * on use.
00008  *
00009  * DO NOT EDIT THIS FILE - IT IS PROGRAMMATICALLY GENERATED
00010  *
00011  * Generated by 'clnt-gen'.
00012  */
00013 
00014 #ifndef __XRL_INTERFACES_FINDER_EVENT_NOTIFIER_XIF_HH__
00015 #define __XRL_INTERFACES_FINDER_EVENT_NOTIFIER_XIF_HH__
00016 
00017 #undef XORP_LIBRARY_NAME
00018 #define XORP_LIBRARY_NAME "XifFinderEventNotifier"
00019 
00020 #include "libxorp/xlog.h"
00021 #include "libxorp/callback.hh"
00022 
00023 #include "libxipc/xrl.hh"
00024 #include "libxipc/xrl_error.hh"
00025 #include "libxipc/xrl_sender.hh"
00026 
00027 //#include <memory>
00028 
00029 class XrlFinderEventNotifierV0p1Client {
00030 public:
00031     XrlFinderEventNotifierV0p1Client(XrlSender* s) : _sender(s) {}
00032     virtual ~XrlFinderEventNotifierV0p1Client() {}
00033 
00034     typedef XorpCallback1<void, const XrlError&>::RefPtr RegisterClassEventInterestCB;
00052     bool send_register_class_event_interest(
00053     const char* dst_xrl_target_name,
00054     const string&   requester_instance,
00055     const string&   class_name,
00056     const RegisterClassEventInterestCB& cb
00057     );
00058 
00059     typedef XorpCallback1<void, const XrlError&>::RefPtr DeregisterClassEventInterestCB;
00072     bool send_deregister_class_event_interest(
00073     const char* dst_xrl_target_name,
00074     const string&   requester_instance,
00075     const string&   class_name,
00076     const DeregisterClassEventInterestCB&   cb
00077     );
00078 
00079     typedef XorpCallback1<void, const XrlError&>::RefPtr RegisterInstanceEventInterestCB;
00097     bool send_register_instance_event_interest(
00098     const char* dst_xrl_target_name,
00099     const string&   requester_instance,
00100     const string&   instance_name,
00101     const RegisterInstanceEventInterestCB&  cb
00102     );
00103 
00104     typedef XorpCallback1<void, const XrlError&>::RefPtr DeregisterInstanceEventInterestCB;
00118     bool send_deregister_instance_event_interest(
00119     const char* dst_xrl_target_name,
00120     const string&   requester_instance,
00121     const string&   instance_name,
00122     const DeregisterInstanceEventInterestCB&    cb
00123     );
00124 
00125 protected:
00126     XrlSender* _sender;
00127 
00128 private:
00129     static void unmarshall_register_class_event_interest(
00130     const XrlError& e,
00131     XrlArgs*    a,
00132     RegisterClassEventInterestCB        cb
00133     );
00134 
00135     static void unmarshall_deregister_class_event_interest(
00136     const XrlError& e,
00137     XrlArgs*    a,
00138     DeregisterClassEventInterestCB      cb
00139     );
00140 
00141     static void unmarshall_register_instance_event_interest(
00142     const XrlError& e,
00143     XrlArgs*    a,
00144     RegisterInstanceEventInterestCB     cb
00145     );
00146 
00147     static void unmarshall_deregister_instance_event_interest(
00148     const XrlError& e,
00149     XrlArgs*    a,
00150     DeregisterInstanceEventInterestCB       cb
00151     );
00152 
00153 private:
00154     /* Declare cached Xrl pointers */
00155     auto_ptr<Xrl> ap_xrl_register_class_event_interest;
00156     auto_ptr<Xrl> ap_xrl_deregister_class_event_interest;
00157     auto_ptr<Xrl> ap_xrl_register_instance_event_interest;
00158     auto_ptr<Xrl> ap_xrl_deregister_instance_event_interest;
00159 };
00160 
00161 #endif /* __XRL_INTERFACES_FINDER_EVENT_NOTIFIER_XIF_HH__ */
 All Classes Namespaces Functions Variables Typedefs Enumerations