3 //=============================================================================
5 * @file Server_ORBInitializer.h
7 * Implementation header for the PortableInterceptor ORB::shutdown()
8 * test server side ORB initializer.
10 * @author Ossama Othman <ossama@dre.vanderbilt.edu>
12 //=============================================================================
14 #ifndef TAO_SERVER_ORB_INITIALIZER_H
15 #define TAO_SERVER_ORB_INITIALIZER_H
17 #include "tao/LocalObject.h"
19 #if !defined (ACE_LACKS_PRAGMA_ONCE)
21 #endif /* ACE_LACKS_PRAGMA_ONCE */
23 #if TAO_HAS_INTERCEPTORS == 1
25 #include "tao/PI/PI.h"
27 // This is to remove "inherits via dominance" warnings from MSVC.
28 // MSVC is being a little too paranoid.
31 #pragma warning(disable:4250)
34 // Forward declaration.
35 class Server_Request_Interceptor
;
37 /// Server side ORB initializer.
38 class Server_ORBInitializer
39 : public virtual PortableInterceptor::ORBInitializer
,
40 public virtual ::CORBA::LocalObject
45 Server_ORBInitializer (bool & destroy_called
);
47 virtual void pre_init (PortableInterceptor::ORBInitInfo_ptr info
);
49 virtual void post_init (PortableInterceptor::ORBInitInfo_ptr info
);
53 /// Flag that states whether this interceptor's @c destroy() method
55 bool & destroy_called_
;
63 #endif /* TAO_HAS_INTERCEPTORS == 1 */
65 #endif /* TAO_SERVER_ORB_INITIALIZER_H */