Merge pull request #2309 from mitza-oci/warnings
[ACE_TAO.git] / TAO / tests / Portable_Interceptors / PICurrent / ClientORBInitializer.h
blobd4a5cbd430e1b91761383f45f868f49dda63b068
1 // -*- C++ -*-
3 //=============================================================================
4 /**
5 * @file ClientORBInitializer.h
7 * @author Ossama Othman <ossama@uci.edu>
8 */
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)
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 // Test's SlotId made global for ease of implementation.
29 // It is initialized to a large number to make it obvious when the
30 // SlotId is invalid.
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;
36 /**
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
48 public:
49 /**
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.
56 //@{
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);
64 //@}
67 #if defined(_MSC_VER)
68 #pragma warning(pop)
69 #endif /* _MSC_VER */
71 #endif /* CLIENT_ORB_INITIALIZER_H */