Merge pull request #1844 from jrw972/monterey
[ACE_TAO.git] / TAO / DevGuideExamples / PortableInterceptors / PICurrent / ClientInterceptor.h
blobf3ec546e4b4c36db1d4f25986cf0a417deb8ed23
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 public:
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);
36 private:
37 const char *myname_;
38 Messenger_var messenger;
39 PortableInterceptor::Current_ptr pic;
40 PortableInterceptor::SlotId slot;
43 #endif