3 //=============================================================================
5 * @file ORT_test_IORInterceptor.h
7 * @author Ossama Othman <ossama@uci.edu>
8 * @author Priyanka Gontla <gontla_p@ociweb.com>
10 //=============================================================================
13 #ifndef ORT_TEST_IORINTERCEPTOR_H
14 #define ORT_TEST_IORINTERCEPTOR_H
16 #include "ace/config-all.h"
18 #if !defined (ACE_LACKS_PRAGMA_ONCE)
20 #endif /* ACE_LACKS_PRAGMA_ONCE */
22 #include "tao/IORInterceptor/IORInterceptor.h"
23 #include "tao/PortableInterceptorC.h"
24 #include "tao/LocalObject.h"
28 #pragma warning(disable:4250)
31 class ORT_test_IORInterceptor
32 : public virtual PortableInterceptor::IORInterceptor_3_0
,
33 public virtual ::CORBA::LocalObject
36 ORT_test_IORInterceptor ();
39 * @name Methods Required by the IOR Interceptor Interface
41 * These are methods that must be implemented since they are pure
42 * virtual in the abstract base class. They are the canonical
43 * methods required for all IOR interceptors.
46 /// Return the name of this IORInterceptor.
47 virtual char * name ();
49 /// Cleanup resources acquired by this IORInterceptor.
50 virtual void destroy ();
52 /// Add the tagged components to the IOR.
53 virtual void establish_components (
54 PortableInterceptor::IORInfo_ptr info
);
56 virtual void components_established (
57 PortableInterceptor::IORInfo_ptr info
);
59 virtual void adapter_manager_state_changed (
61 PortableInterceptor::AdapterState state
);
63 virtual void adapter_state_changed (
64 const PortableInterceptor::ObjectReferenceTemplateSeq
& templates
,
65 PortableInterceptor::AdapterState state
);
70 CORBA::Long establish_count_
;
72 CORBA::Long components_establish_count_
;
79 #endif /* ORT_TEST_IORINTERCEPTOR_H */