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
37 ORT_test_IORInterceptor (void);
40 * @name Methods Required by the IOR Interceptor Interface
42 * These are methods that must be implemented since they are pure
43 * virtual in the abstract base class. They are the canonical
44 * methods required for all IOR interceptors.
47 /// Return the name of this IORInterceptor.
48 virtual char * name (void);
50 /// Cleanup resources acquired by this IORInterceptor.
51 virtual void destroy (void);
53 /// Add the tagged components to the IOR.
54 virtual void establish_components (
55 PortableInterceptor::IORInfo_ptr info
);
57 virtual void components_established (
58 PortableInterceptor::IORInfo_ptr info
);
60 virtual void adapter_manager_state_changed (
62 PortableInterceptor::AdapterState state
);
64 virtual void adapter_state_changed (
65 const PortableInterceptor::ObjectReferenceTemplateSeq
& templates
,
66 PortableInterceptor::AdapterState state
);
72 CORBA::Long establish_count_
;
74 CORBA::Long components_establish_count_
;
82 #endif /* ORT_TEST_IORINTERCEPTOR_H */