Merge pull request #2309 from mitza-oci/warnings
[ACE_TAO.git] / TAO / orbsvcs / tests / FaultTolerance / GroupRef_Manipulation / Server_ORBInitializer.h
blob6bec1a8ad31ba28567271581f3a999442cd29058
1 // -*- C++ -*-
3 //=============================================================================
4 /**
5 * @file Server_ORBInitializer.h
7 * Implementation header for the PortableInterceptor::ForwardRequest
8 * exception test server side ORB initializer.
10 * @author Ossama Othman <ossama@uci.edu>
12 //=============================================================================
14 #ifndef TAO_SERVER_ORB_INITIALIZER_H
15 #define TAO_SERVER_ORB_INITIALIZER_H
17 #include /**/ "ace/pre.h"
19 #include "tao/LocalObject.h"
21 #if !defined (ACE_LACKS_PRAGMA_ONCE)
22 # pragma once
23 #endif /* ACE_LACKS_PRAGMA_ONCE */
25 #if TAO_HAS_INTERCEPTORS == 1
27 #include "tao/PI/PI.h"
29 // This is to remove "inherits via dominance" warnings from MSVC.
30 // MSVC is being a little too paranoid.
31 #if defined(_MSC_VER)
32 #pragma warning(push)
33 #pragma warning(disable:4250)
34 #endif /* _MSC_VER */
36 // Forward declaration.
37 class Server_Request_Interceptor;
39 /// Server side ORB initializer.
40 class Server_ORBInitializer :
41 public virtual PortableInterceptor::ORBInitializer,
42 public virtual ::CORBA::LocalObject
44 public:
45 /// Constructor.
46 Server_ORBInitializer ();
48 virtual void pre_init (PortableInterceptor::ORBInitInfo_ptr info);
50 virtual void post_init (PortableInterceptor::ORBInitInfo_ptr info);
52 /// Return the created server request interceptor. Only valid after
53 /// post_init(), i.e. ORB_init(), has been called.
54 PortableInterceptor::ServerRequestInterceptor_ptr server_interceptor ();
56 private:
57 /// Pointer to the server request interceptor. ORB is responsible
58 /// for storage.
59 PortableInterceptor::ServerRequestInterceptor_var server_interceptor_;
62 #if defined(_MSC_VER)
63 #pragma warning(pop)
64 #endif /* _MSC_VER */
66 #endif /* TAO_HAS_INTERCEPTORS == 1 */
68 #include /**/ "ace/post.h"
70 #endif /* TAO_SERVER_ORB_INITIALIZER_H */