xorp

test_xrls_xif.hh

00001 /*
00002  * obj/i386-pc-mingw32/xrl/interfaces/test_xrls_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_TEST_XRLS_XIF_HH__
00015 #define __XRL_INTERFACES_TEST_XRLS_XIF_HH__
00016 
00017 #undef XORP_LIBRARY_NAME
00018 #define XORP_LIBRARY_NAME "XifTestXrls"
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 XrlTestXrlsV0p1Client {
00030 public:
00031     XrlTestXrlsV0p1Client(XrlSender* s) : _sender(s) {}
00032     virtual ~XrlTestXrlsV0p1Client() {}
00033 
00034     typedef XorpCallback1<void, const XrlError&>::RefPtr StartTransmissionCB;
00035 
00036     bool send_start_transmission(
00037     const char* dst_xrl_target_name,
00038     const StartTransmissionCB&  cb
00039     );
00040 
00041     typedef XorpCallback1<void, const XrlError&>::RefPtr EndTransmissionCB;
00042 
00043     bool send_end_transmission(
00044     const char* dst_xrl_target_name,
00045     const EndTransmissionCB&    cb
00046     );
00047 
00048     typedef XorpCallback1<void, const XrlError&>::RefPtr AddXrl0CB;
00049 
00050     bool send_add_xrl0(
00051     const char* dst_xrl_target_name,
00052     const AddXrl0CB&    cb
00053     );
00054 
00055     typedef XorpCallback1<void, const XrlError&>::RefPtr AddXrl1CB;
00056 
00057     bool send_add_xrl1(
00058     const char* dst_xrl_target_name,
00059     const string&   data1,
00060     const AddXrl1CB&    cb
00061     );
00062 
00063     typedef XorpCallback1<void, const XrlError&>::RefPtr AddXrl2CB;
00064 
00065     bool send_add_xrl2(
00066     const char* dst_xrl_target_name,
00067     const string&   data1,
00068     const string&   data2,
00069     const AddXrl2CB&    cb
00070     );
00071 
00072     typedef XorpCallback1<void, const XrlError&>::RefPtr AddXrl9CB;
00073 
00074     bool send_add_xrl9(
00075     const char* dst_xrl_target_name,
00076     const bool& data1,
00077     const int32_t&  data2,
00078     const IPv4& data3,
00079     const IPv4Net&  data4,
00080     const IPv6& data5,
00081     const IPv6Net&  data6,
00082     const Mac&  data7,
00083     const string&   data8,
00084     const vector<uint8_t>&  data9,
00085     const AddXrl9CB&    cb
00086     );
00087 
00088     typedef XorpCallback1<void, const XrlError&>::RefPtr AddXrlxCB;
00089 
00090     bool send_add_xrlx(
00091     const char* dst_xrl_target_name,
00092     const XrlAtomList&  data,
00093     const AddXrlxCB&    cb
00094     );
00095 
00096 protected:
00097     XrlSender* _sender;
00098 
00099 private:
00100     static void unmarshall_start_transmission(
00101     const XrlError& e,
00102     XrlArgs*    a,
00103     StartTransmissionCB     cb
00104     );
00105 
00106     static void unmarshall_end_transmission(
00107     const XrlError& e,
00108     XrlArgs*    a,
00109     EndTransmissionCB       cb
00110     );
00111 
00112     static void unmarshall_add_xrl0(
00113     const XrlError& e,
00114     XrlArgs*    a,
00115     AddXrl0CB       cb
00116     );
00117 
00118     static void unmarshall_add_xrl1(
00119     const XrlError& e,
00120     XrlArgs*    a,
00121     AddXrl1CB       cb
00122     );
00123 
00124     static void unmarshall_add_xrl2(
00125     const XrlError& e,
00126     XrlArgs*    a,
00127     AddXrl2CB       cb
00128     );
00129 
00130     static void unmarshall_add_xrl9(
00131     const XrlError& e,
00132     XrlArgs*    a,
00133     AddXrl9CB       cb
00134     );
00135 
00136     static void unmarshall_add_xrlx(
00137     const XrlError& e,
00138     XrlArgs*    a,
00139     AddXrlxCB       cb
00140     );
00141 
00142 private:
00143     /* Declare cached Xrl pointers */
00144     auto_ptr<Xrl> ap_xrl_start_transmission;
00145     auto_ptr<Xrl> ap_xrl_end_transmission;
00146     auto_ptr<Xrl> ap_xrl_add_xrl0;
00147     auto_ptr<Xrl> ap_xrl_add_xrl1;
00148     auto_ptr<Xrl> ap_xrl_add_xrl2;
00149     auto_ptr<Xrl> ap_xrl_add_xrl9;
00150     auto_ptr<Xrl> ap_xrl_add_xrlx;
00151 };
00152 
00153 #endif /* __XRL_INTERFACES_TEST_XRLS_XIF_HH__ */
 All Classes Namespaces Functions Variables Typedefs Enumerations