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
15 ClientInterceptor (Messenger_var theMessage
,
16 PortableInterceptor::Current_ptr thePic
,
17 PortableInterceptor::SlotId theSlot
);
19 virtual ~ClientInterceptor ();
21 virtual char * name ();
23 virtual void destroy ();
25 virtual void send_poll (PortableInterceptor::ClientRequestInfo_ptr ri
);
27 virtual void send_request (PortableInterceptor::ClientRequestInfo_ptr ri
);
29 virtual void receive_reply (PortableInterceptor::ClientRequestInfo_ptr ri
);
31 virtual void receive_other (PortableInterceptor::ClientRequestInfo_ptr ri
);
33 virtual void receive_exception (PortableInterceptor::ClientRequestInfo_ptr ri
);
37 Messenger_var messenger
;
38 PortableInterceptor::Current_ptr pic
;
39 PortableInterceptor::SlotId slot
;