Merge pull request #1844 from jrw972/monterey
[ACE_TAO.git] / TAO / tests / ORT / ORT_test_IORInterceptor.h
blobaf32bbf24e9c785c0cc35171bb9d2dfce3f79976
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:
37 ORT_test_IORInterceptor (void);
39 /**
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.
46 //@{
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 (
61 const char * id,
62 PortableInterceptor::AdapterState state);
64 virtual void adapter_state_changed (
65 const PortableInterceptor::ObjectReferenceTemplateSeq & templates,
66 PortableInterceptor::AdapterState state);
68 //@}
70 private:
72 CORBA::Long establish_count_;
74 CORBA::Long components_establish_count_;
78 #if defined(_MSC_VER)
79 #pragma warning(pop)
80 #endif /* _MSC_VER */
82 #endif /* ORT_TEST_IORINTERCEPTOR_H */