Changes to attempt to silence bcc64x
[ACE_TAO.git] / TAO / orbsvcs / tests / ImplRepo / ping_interrupt / Server_ORBInitializer.h
blobea652c725d04cc714401ef0b1e74b523ee16a415
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 (int *counter);
32 void set_poa (PortableServer::POA_ptr poa);
34 virtual void pre_init (PortableInterceptor::ORBInitInfo_ptr info);
36 virtual void post_init (PortableInterceptor::ORBInitInfo_ptr info);
38 private:
39 int *counter_;
40 Ping_Death_Request_Interceptor *intr_;
43 #if defined(_MSC_VER)
44 #pragma warning(pop)
45 #endif /* _MSC_VER */
47 #include /**/ "ace/post.h"
48 #endif /* TAO_SERVER_ORB_INITIALIZER_H */