Revert "Use a variable on the stack to not have a temporary in the call"
[ACE_TAO.git] / TAO / tests / Bug_1495_Regression / Server_ORBInitializer.h
blob7fac80332cae9e81ab9909b193ebce6715e60a50
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 class Echo_Server_Request_Interceptor;
17 // This is to remove "inherits via dominance" warnings from MSVC.
18 // MSVC is being a little too paranoid.
19 #if defined(_MSC_VER)
20 #pragma warning(push)
21 #pragma warning(disable:4250)
22 #endif /* _MSC_VER */
24 /// Server ORB initializer.
25 class Server_ORBInitializer :
26 public virtual PortableInterceptor::ORBInitializer,
27 public virtual ::CORBA::LocalObject
29 public:
30 /// Constructor
31 Server_ORBInitializer ();
33 virtual void pre_init (PortableInterceptor::ORBInitInfo_ptr info);
35 virtual void post_init (PortableInterceptor::ORBInitInfo_ptr info);
37 /// Return the created server request interceptor. Only valid after
38 /// post_init(), i.e. ORB_init(), has been called.
39 Echo_Server_Request_Interceptor * server_interceptor ();
41 private:
42 /// Pointer to the server request interceptor. ORB is responsible
43 /// for storage.
44 Echo_Server_Request_Interceptor * server_interceptor_;
47 #if defined(_MSC_VER)
48 #pragma warning(pop)
49 #endif /* _MSC_VER */
51 #include /**/ "ace/post.h"
52 #endif /* TAO_SERVER_ORB_INITIALIZER_H */