3 //=============================================================================
5 * @file ClientORBInitializer.h
7 * @author Ossama Othman <ossama@uci.edu>
9 //=============================================================================
11 #ifndef CLIENT_ORB_INITIALIZER_H
12 #define CLIENT_ORB_INITIALIZER_H
14 #include "ace/config-all.h"
16 #if !defined (ACE_LACKS_PRAGMA_ONCE)
18 #endif /* ACE_LACKS_PRAGMA_ONCE */
20 #include "tao/PI/PI.h"
21 #include "tao/LocalObject.h"
25 #pragma warning(disable:4250)
28 // Test's SlotId made global for ease of implementation.
29 // It is initialized to a large number to make it obvious when the
32 // Don't do this if you have more than one ORB in your application or
33 // if thread-safety is an issue!!!
34 extern PortableInterceptor::SlotId slot_id
;
37 * @class ClientORBInitializer
39 * @brief Simple concrete ORB initializer.
41 * This is a test ORB initializer that registers an
42 * ClientRequestInterceptor for this test.
44 class ClientORBInitializer
:
45 public virtual PortableInterceptor::ORBInitializer
,
46 public virtual ::CORBA::LocalObject
50 * @name Methods Required by the ORBInitializer Interface
52 * These are methods that must be implemented since they are pure
53 * virtual in the abstract base class. They are the canonical
54 * methods required for all ORB initializers.
57 /// The pre-initialization hook.
58 virtual void pre_init (
59 PortableInterceptor::ORBInitInfo_ptr info
);
61 /// The post-initialization hook.
62 virtual void post_init (
63 PortableInterceptor::ORBInitInfo_ptr info
);
71 #endif /* CLIENT_ORB_INITIALIZER_H */