Merge pull request #2303 from jwillemsen/jwi-803
[ACE_TAO.git] / TAO / DevGuideExamples / PortableInterceptors / PICurrent / ClientInterceptor.h
blob17440a354b402eda5af567c3f00fe372ffddfa17
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
14 public:
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);
35 private:
36 const char *myname_;
37 Messenger_var messenger;
38 PortableInterceptor::Current_ptr pic;
39 PortableInterceptor::SlotId slot;
42 #endif