Revert "Use a variable on the stack to not have a temporary in the call"
[ACE_TAO.git] / TAO / tests / ORT / ServerORBInitializer.h
blobc3fc9ea5c28f2040f2b24465e8d8c4a953382be4
1 // -*- C++ -*-
3 //=============================================================================
4 /**
5 * @file ServerORBInitializer.h
7 * @author Ossama Othman <ossama@uci.edu>
8 */
9 //=============================================================================
11 #ifndef SERVER_ORB_INITIALIZER_H
12 #define SERVER_ORB_INITIALIZER_H
14 #include "ace/config-all.h"
16 #if !defined (ACE_LACKS_PRAGMA_ONCE)
17 # pragma once
18 #endif /* ACE_LACKS_PRAGMA_ONCE */
20 #include "tao/PI/PI.h"
21 #include "tao/LocalObject.h"
23 #if defined(_MSC_VER)
24 #pragma warning(push)
25 #pragma warning(disable:4250)
26 #endif /* _MSC_VER */
28 /**
29 * @class ServerORBInitializer
31 * @brief Simple concrete ORB initializer.
33 * This is a test ORB initializer that registers an IORInterceptor and
34 * ServerRequestIntercepor for this ORT test.
36 class ServerORBInitializer :
37 public virtual PortableInterceptor::ORBInitializer,
38 public virtual ::CORBA::LocalObject
40 public:
41 /**
42 * @name Methods Required by the ORBInitializer Interface
44 * These are methods that must be implemented since they are pure
45 * virtual in the abstract base class. They are the canonical
46 * methods required for all ORB initializers.
48 //@{
49 /// The pre-initialization hook.
50 virtual void pre_init (
51 PortableInterceptor::ORBInitInfo_ptr info);
53 /// The post-initialization hook.
54 virtual void post_init (
55 PortableInterceptor::ORBInitInfo_ptr info);
56 //@}
60 #if defined(_MSC_VER)
61 #pragma warning(pop)
62 #endif /* _MSC_VER */
64 #endif /* SERVER_ORB_INITIALIZER_H */