Revert "Use a variable on the stack to not have a temporary in the call"
[ACE_TAO.git] / TAO / tests / Portable_Interceptors / PolicyFactory / Server_ORBInitializer.h
blob0ef06a407d1adc91bd4d16900773e0390f908af4
1 // -*- C++ -*-
3 //=============================================================================
4 /**
5 * @file Server_ORBInitializer.h
7 * Implementation header for the IOR test interceptor ORB
8 * initializer.
10 * @author Ossama Othman <ossama@dre.vanderbilt.edu>
12 //=============================================================================
14 #ifndef SERVER_ORB_INITIALIZER_H
15 #define SERVER_ORB_INITIALIZER_H
17 #include "ace/config-all.h"
19 #if !defined (ACE_LACKS_PRAGMA_ONCE)
20 # pragma once
21 #endif /* ACE_LACKS_PRAGMA_ONCE */
23 #include "tao/PI/PI.h"
24 #include "tao/LocalObject.h"
26 #if defined(_MSC_VER)
27 #pragma warning(push)
28 #pragma warning(disable:4250)
29 #endif /* _MSC_VER */
31 /**
32 * @class Server_ORBInitializer
34 * @brief Simple concrete ORB initializer.
36 * This is a test ORB initializer that registers a PolicyFactory and
37 * IORInterceptor for this test.
39 class Server_ORBInitializer
40 : public virtual PortableInterceptor::ORBInitializer,
41 public virtual ::CORBA::LocalObject
43 public:
44 /**
45 * @name Methods Required by the ORBInitializer Interface
47 * These are methods that must be implemented since they are pure
48 * virtual in the abstract base class. They are the canonical
49 * methods required for all ORB initializers.
51 //@{
52 /// The pre-initialization hook.
53 virtual void pre_init (
54 PortableInterceptor::ORBInitInfo_ptr info);
56 /// The post-initialization hook.
57 virtual void post_init (
58 PortableInterceptor::ORBInitInfo_ptr info);
59 //@}
62 #if defined(_MSC_VER)
63 #pragma warning(pop)
64 #endif /* _MSC_VER */
66 #endif /* SERVER_ORB_INITIALIZER_H */