3 //=============================================================================
5 * @file ClientRequestInterceptor2.h
7 * @author Ossama Othman <ossama@uci.edu>
9 //=============================================================================
11 #ifndef CLIENT_REQUEST_INTERCEPTOR2_H
12 #define CLIENT_REQUEST_INTERCEPTOR2_H
14 #include "ace/config-all.h"
16 #if !defined (ACE_LACKS_PRAGMA_ONCE)
18 #endif /* ACE_LACKS_PRAGMA_ONCE */
20 #include "tao/PI/PI.h"
21 #include "tao/PortableInterceptorC.h"
22 #include "tao/LocalObject.h"
26 #pragma warning(disable:4250)
30 * @class ClientRequestInterceptor2
32 * @brief Simple concrete client request interceptor.
34 * This is a test client request interceptor that verifies that is
35 * used when verifying that the RSC->TSC->RSC copying semantics work
38 class ClientRequestInterceptor2
39 : public virtual PortableInterceptor::ClientRequestInterceptor
,
40 public virtual ::CORBA::LocalObject
45 ClientRequestInterceptor2 (PortableInterceptor::SlotId slot_id
);
48 * @name Methods Required by the Client Request Interceptor
51 * These are methods that must be implemented since they are pure
52 * virtual in the abstract base class. They are the canonical
53 * methods required for all client request interceptors.
56 /// Return the name of this ClientRequestInterceptor.
57 virtual char * name (void);
59 virtual void destroy (void);
61 virtual void send_request (
62 PortableInterceptor::ClientRequestInfo_ptr ri
);
64 virtual void send_poll (
65 PortableInterceptor::ClientRequestInfo_ptr ri
);
67 virtual void receive_reply (
68 PortableInterceptor::ClientRequestInfo_ptr ri
);
70 virtual void receive_exception (
71 PortableInterceptor::ClientRequestInfo_ptr ri
);
73 virtual void receive_other (
74 PortableInterceptor::ClientRequestInfo_ptr ri
);
79 /// The PICurrent slot ID allocated to this application during ORB
81 PortableInterceptor::SlotId slot_id_
;
89 #endif /* CLIENT_REQUEST_INTERCEPTOR_H */