Merge pull request #2309 from mitza-oci/warnings
[ACE_TAO.git] / TAO / tao / ImR_Client / ServerObject_i.h
bloba75b20928071980c3c2b4e33392d6e5effbd21d4
1 // -*- C++ -*-
3 //=============================================================================
4 /**
5 * @file ServerObject_i.h
7 * @author Darrell Brunsch
8 * @author Irfan Pyarali
9 */
10 // ===================================================================
12 #ifndef TAO_SERVEROBJECT_I_H
13 #define TAO_SERVEROBJECT_I_H
15 #include /**/ "ace/pre.h"
17 #include "tao/ORB.h"
19 #if !defined (ACE_LACKS_PRAGMA_ONCE)
20 # pragma once
21 #endif /* ACE_LACKS_PRAGMA_ONCE */
23 #include "tao/ImR_Client/ServerObjectS.h"
24 #include "tao/ImR_Client/imr_client_export.h"
26 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
28 /**
29 * @class ServerObject_i
31 * @brief Class for pinging a server. Implementation Repository uses
32 * this to communicate with the IMR registered servers.
34 * \nosubgrouping
36 **/
37 class TAO_IMR_Client_Export ServerObject_i
38 : public POA_ImplementationRepository::ServerObject
40 public:
41 /// Constructor.
42 ServerObject_i (CORBA::ORB_ptr orb, PortableServer::POA_ptr poa);
44 /// Ping method.
45 void ping ();
47 /// Shutdown the server.
48 void shutdown ();
50 /// Returns the default POA for this servant.
51 PortableServer::POA_ptr _default_POA ();
53 protected:
54 /// Our ORB. We need this member in case we need to shutdown the
55 /// server.
56 CORBA::ORB_var orb_;
58 /// POA that we are registered with.
59 PortableServer::POA_var poa_;
62 TAO_END_VERSIONED_NAMESPACE_DECL
64 #include /**/ "ace/post.h"
66 #endif /* TAO_SERVEROBJECT_I_H */