1 #ifndef CLIENTINTERCEPTOR_H
2 #define CLIENTINTERCEPTOR_H
4 #include "tao/PortableInterceptorC.h"
5 #include "tao/LocalObject.h"
6 #include "tao/PI/ClientRequestInterceptorA.h"
7 #include "tao/PI/PICurrentC.h"
8 #include "MessengerC.h"
10 class ClientInterceptor
:
11 public virtual PortableInterceptor::ClientRequestInterceptor
,
12 public virtual ::CORBA::LocalObject
16 ClientInterceptor (Messenger_var theMessage
,
17 PortableInterceptor::Current_ptr thePic
,
18 PortableInterceptor::SlotId theSlot
);
20 virtual ~ClientInterceptor ();
22 virtual char * name ();
24 virtual void destroy ();
26 virtual void send_poll (PortableInterceptor::ClientRequestInfo_ptr ri
);
28 virtual void send_request (PortableInterceptor::ClientRequestInfo_ptr ri
);
30 virtual void receive_reply (PortableInterceptor::ClientRequestInfo_ptr ri
);
32 virtual void receive_other (PortableInterceptor::ClientRequestInfo_ptr ri
);
34 virtual void receive_exception (PortableInterceptor::ClientRequestInfo_ptr ri
);
38 Messenger_var messenger
;
39 PortableInterceptor::Current_ptr pic
;
40 PortableInterceptor::SlotId slot
;