Revert "Minor modernization of DynamicAny code"
[ACE_TAO.git] / TAO / tests / ORT / ORT_test_IORInterceptor.h
blobd92afd169f1352d3ce2f08918c3cfed32897d68b
1 // -*- C++ -*-
3 //=============================================================================
4 /**
5 * @file ORT_test_IORInterceptor.h
7 * @author Ossama Othman <ossama@uci.edu>
8 * @author Priyanka Gontla <gontla_p@ociweb.com>
9 */
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)
19 # pragma once
20 #endif /* ACE_LACKS_PRAGMA_ONCE */
22 #include "tao/IORInterceptor/IORInterceptor.h"
23 #include "tao/PortableInterceptorC.h"
24 #include "tao/LocalObject.h"
26 #if defined(_MSC_VER)
27 #pragma warning(push)
28 #pragma warning(disable:4250)
29 #endif /* _MSC_VER */
31 class ORT_test_IORInterceptor
32 : public virtual PortableInterceptor::IORInterceptor_3_0,
33 public virtual ::CORBA::LocalObject
35 public:
36 ORT_test_IORInterceptor ();
38 /**
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.
45 //@{
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 (
60 const char * id,
61 PortableInterceptor::AdapterState state);
63 virtual void adapter_state_changed (
64 const PortableInterceptor::ObjectReferenceTemplateSeq & templates,
65 PortableInterceptor::AdapterState state);
67 //@}
69 private:
70 CORBA::Long establish_count_;
72 CORBA::Long components_establish_count_;
75 #if defined(_MSC_VER)
76 #pragma warning(pop)
77 #endif /* _MSC_VER */
79 #endif /* ORT_TEST_IORINTERCEPTOR_H */