Merge pull request #2303 from jwillemsen/jwi-803
[ACE_TAO.git] / TAO / examples / Simple / time / Time_i.h
blob9a990e976be3c35e3d4f08d5ce69d6427c3f9c63
1 // -*- C++ -*-
3 //=============================================================================
4 /**
5 * @file Time_i.h
7 * This class implements the Time IDL interface.
9 * @author Darrell Brunsch <brunsch@cs.wustl.edu>
11 //=============================================================================
14 #ifndef TIME_I_H
15 #define TIME_I_H
17 #include "TimeS.h"
19 /**
20 * @class Time_i:
22 * @brief Time Object Implementation
24 * Implementation of a simple object that has two methods, one that
25 * return the current time/date on the server and the other that
26 * shuts down the server.
28 class Time_i: public POA_Time
30 public:
31 /// Constructor
32 Time_i ();
34 /// Destructor
35 virtual ~Time_i ();
37 /// Return the current time/date on the server
38 virtual CORBA::Long current_time ();
40 /// Shutdown the server.
41 virtual void shutdown ();
43 /// Set the ORB pointer.
44 void orb (CORBA::ORB_ptr o);
46 private:
47 /// ORB pointer.
48 CORBA::ORB_var orb_;
50 void operator= (const Time_i &);
53 #endif /* TIME_I_H */