Changes to attempt to silence bcc64x
[ACE_TAO.git] / TAO / orbsvcs / examples / LoadBalancing / ORBInitializer.h
blobc40f6140a0c5a5aa58e92a5d4ad5e377345d8d6f
1 // -*- C++ -*-
3 //=============================================================================
4 /**
5 * @file ORBInitializer.h
7 * @author Ossama Othman <ossama@dre.vanderbilt.edu>
8 */
9 //=============================================================================
12 #ifndef ORB_INITIALIZER_H
13 #define ORB_INITIALIZER_H
15 #include /**/ "ace/pre.h"
17 #include "orbsvcs/LoadBalancing/LB_LoadAlert.h"
19 #if !defined (ACE_LACKS_PRAGMA_ONCE)
20 # pragma once
21 #endif /* ACE_LACKS_PRAGMA_ONCE */
23 #include "tao/LocalObject.h"
24 #include "tao/PI/PI.h"
26 // This is to remove "inherits via dominance" warnings from MSVC.
27 // MSVC is being a little too paranoid.
28 #if defined(_MSC_VER)
29 #pragma warning(push)
30 #pragma warning(disable:4250)
31 #endif /* _MSC_VER */
33 class ServerRequestInterceptor;
35 /**
36 * @class ORBInitializer
38 * @brief ORBInitializer
40 * ORBInitializer
42 class ORBInitializer
43 : public virtual PortableInterceptor::ORBInitializer,
44 public virtual ::CORBA::LocalObject
46 public:
47 /// Constructor.
48 ORBInitializer ();
50 /**
51 * @name PortableInterceptor::ORBInitializer Methods
53 * Methods required by the PortableInterceptor::ORBInitializer
54 * interface.
56 //@{
57 virtual void pre_init (PortableInterceptor::ORBInitInfo_ptr info);
59 virtual void post_init (PortableInterceptor::ORBInitInfo_ptr info);
60 //@}
62 /// Return a reference to the LoadAlert object.
63 TAO_LB_LoadAlert & load_alert ();
65 ServerRequestInterceptor * interceptor () const;
67 private:
68 /// The CosLoadBalancing::LoadAlert servant to be used at this
69 /// location.
70 /**
71 * This is the servant supplied by TAO's Load Balancer. It is
72 * used out of convencience.
74 TAO_LB_LoadAlert load_alert_;
76 ServerRequestInterceptor * interceptor_;
80 #if defined(_MSC_VER)
81 #pragma warning(pop)
82 #endif /* _MSC_VER */
84 #include /**/ "ace/post.h"
86 #endif /* ORB_INITIALIZER_H */