Revert "Minor modernization of DynamicAny code"
[ACE_TAO.git] / TAO / tests / DII_AMI_Forward / orb_initializer.h
blobacd48c9048aad498223f39279391d312f2c8b845
1 // -*- C++ -*-
3 #ifndef TAO_SERVER_ORB_INITIALIZER_H
4 #define TAO_SERVER_ORB_INITIALIZER_H
5 #include /**/ "ace/pre.h"
7 #include "tao/LocalObject.h"
8 #include "tao/PI/PI.h"
10 #if !defined (ACE_LACKS_PRAGMA_ONCE)
11 # pragma once
12 #endif /* ACE_LACKS_PRAGMA_ONCE */
15 class ForwardTest_Request_Interceptor;
17 // This is to remove "inherits via dominance" warnings from MSVC.
18 // MSVC is being a little too paranoid.
19 #if defined(_MSC_VER)
20 #pragma warning(push)
21 #pragma warning(disable:4250)
22 #endif /* _MSC_VER */
24 /// Server ORB initializer.
25 class Server_ORBInitializer
26 : public virtual PortableInterceptor::ORBInitializer
27 , public virtual CORBA::LocalObject
29 public:
30 /// Constructor
31 Server_ORBInitializer ();
33 virtual void pre_init (PortableInterceptor::ORBInitInfo_ptr info);
35 virtual void post_init (PortableInterceptor::ORBInitInfo_ptr info);
37 /// Return the created server request interceptor. Only valid after
38 /// post_init(), i.e. ORB_init(), has been called.
39 ForwardTest_Request_Interceptor * server_interceptor ();
41 private:
42 /// Pointer to the server request interceptor. ORB is responsible
43 /// for storage.
44 ForwardTest_Request_Interceptor * server_interceptor_;
47 #if defined(_MSC_VER)
48 #pragma warning(pop)
49 #endif /* _MSC_VER */
51 #include /**/ "ace/post.h"
52 #endif /* TAO_SERVER_ORB_INITIALIZER_H */