Merge pull request #1844 from jrw972/monterey
[ACE_TAO.git] / TAO / tests / Portable_Interceptors / PICurrent / ServerORBInitializer.h
blobfe70c86f8eb17e955b986b45a9091dbff6f9ce68
1 // -*- C++ -*-
3 //=============================================================================
4 /**
5 * @file ServerORBInitializer.h
7 * Implementation header for the PICurrentTest server-side ORB
8 * initializer.
10 * @author Ossama Othman <ossama@uci.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 // Test's SlotId made global for ease of implementation.
32 // It is initialized to a large number to make it obvious when the
33 // SlotId is invalid.
35 // Don't do this if you have more than one ORB in your application or
36 // if thread-safety is an issue!!!
37 extern PortableInterceptor::SlotId slot_id;
39 /**
40 * @class ServerORBInitializer
42 * @brief Simple concrete ORB initializer.
44 * This is a test ORB initializer that registers an IORInterceptor for
45 * this test.
47 class ServerORBInitializer :
48 public virtual PortableInterceptor::ORBInitializer,
49 public virtual ::CORBA::LocalObject
51 public:
53 /**
54 * @name Methods Required by the ORBInitializer Interface
56 * These are methods that must be implemented since they are pure
57 * virtual in the abstract base class. They are the canonical
58 * methods required for all ORB initializers.
60 //@{
61 /// The pre-initialization hook.
62 virtual void pre_init (
63 PortableInterceptor::ORBInitInfo_ptr info);
65 /// The post-initialization hook.
66 virtual void post_init (
67 PortableInterceptor::ORBInitInfo_ptr info);
68 //@}
72 #if defined(_MSC_VER)
73 #pragma warning(pop)
74 #endif /* _MSC_VER */
76 #endif /* SERVER_ORB_INITIALIZER_H */