Merge pull request #1844 from jrw972/monterey
[ACE_TAO.git] / TAO / tests / Portable_Interceptors / Bug_1559 / Server_ORBInitializer.h
blob78a1655f7cde3e6d92697fcc9e432266079b6ec1
1 // -*- C++ -*-
3 #ifndef TAO_SERVER_ORB_INITIALIZER_H
4 #define TAO_SERVER_ORB_INITIALIZER_H
5 #include /**/ "ace/pre.h"
7 #include "tao/PI/PI.h"
9 #if !defined (ACE_LACKS_PRAGMA_ONCE)
10 # pragma once
11 #endif /* ACE_LACKS_PRAGMA_ONCE */
13 #include "tao/LocalObject.h"
14 #include "server_interceptor.h"
16 // This is to remove "inherits via dominance" warnings from MSVC.
17 // MSVC is being a little too paranoid.
18 #if defined(_MSC_VER)
19 #pragma warning(push)
20 #pragma warning(disable:4250)
21 #endif /* _MSC_VER */
23 /// Server ORB initializer.
24 class Server_ORBInitializer :
25 public virtual PortableInterceptor::ORBInitializer,
26 public virtual ::CORBA::LocalObject
28 public:
29 /// Constructor
30 Server_ORBInitializer (void);
32 virtual void pre_init (PortableInterceptor::ORBInitInfo_ptr info);
34 virtual void post_init (PortableInterceptor::ORBInitInfo_ptr info);
36 /// Return the created server request interceptor. Only valid after
37 /// post_init(), i.e. ORB_init(), has been called.
38 Echo_Server_Request_Interceptor * server_interceptor (void);
40 private:
41 /// Pointer to the server request interceptor. ORB is responsible
42 /// for storage.
43 Echo_Server_Request_Interceptor * server_interceptor_;
46 #if defined(_MSC_VER)
47 #pragma warning(pop)
48 #endif /* _MSC_VER */
50 #include /**/ "ace/post.h"
51 #endif /* TAO_SERVER_ORB_INITIALIZER_H */