Merge pull request #2306 from mitza-oci/warnings
[ACE_TAO.git] / TAO / examples / Simple / chat / Receiver_i.h
blob8a552707ea88064eadf39337d8afa25e03b9b833
1 /* -*- C++ -*- */
3 //=============================================================================
4 /**
5 * @file Receiver_i.h
7 * Defines the implementation header for the Receiver interface.
9 * @author Pradeep Gore <pradeep@cs.wustl.edu>
11 //=============================================================================
14 #ifndef RECEIVER_I_H
15 #define RECEIVER_I_H
17 #include "ReceiverS.h"
19 /**
20 * @class Receiver_i
22 * @brief Receiver object implementation
24 * This class has methods that are called by the chat server.
26 class Receiver_i : public POA_Receiver
28 public:
29 /// Constructor.
30 Receiver_i ();
32 /// Destructor.
33 virtual ~Receiver_i ();
35 /// Receives a message string.
36 virtual void message (const char *msg);
38 /**
39 * Called when the chat server is going away. The client
40 * implementation should shutdown the chat client in response to
41 * this.
43 virtual void shutdown ();
45 /// Set the ORB pointer.
46 void orb (CORBA::ORB_ptr o);
48 private:
49 /// ORB pointer.
50 CORBA::ORB_var orb_;
53 #endif /* RECEIVER_I_H */