Merge pull request #2222 from jwillemsen/jwi-dllexportwarning
[ACE_TAO.git] / TAO / tests / Portable_Interceptors / Bug_1559 / Server_ORBInitializer.h
blob5e0bcf8d23df9a29c7c760a9d263af46a5304d81
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 ();
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 ();
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 */