Merge pull request #2222 from jwillemsen/jwi-dllexportwarning
[ACE_TAO.git] / TAO / tests / Portable_Interceptors / Benchmark / Server_ORBInitializer.h
blob4f8486c4cea0ccf4e18b3d9eb3071e1a0badbb84
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"
15 // This is to remove "inherits via dominance" warnings from MSVC.
16 // MSVC is being a little too paranoid.
17 #if defined(_MSC_VER)
18 #pragma warning(push)
19 #pragma warning(disable:4250)
20 #endif /* _MSC_VER */
22 /// Server ORB initializer.
23 class Server_ORBInitializer :
24 public virtual PortableInterceptor::ORBInitializer,
25 public virtual ::CORBA::LocalObject
27 public:
28 /// Constructor
29 Server_ORBInitializer (int interceptor_type);
31 virtual void pre_init (PortableInterceptor::ORBInitInfo_ptr info);
33 virtual void post_init (PortableInterceptor::ORBInitInfo_ptr info);
35 private:
36 int interceptor_type_;
39 #if defined(_MSC_VER)
40 #pragma warning(pop)
41 #endif /* _MSC_VER */
43 #include /**/ "ace/post.h"
44 #endif /* TAO_SERVER_ORB_INITIALIZER_H */