diff options
Diffstat (limited to 'trunk/TAO/examples/Simple/echo/Echo_i.h')
-rw-r--r-- | trunk/TAO/examples/Simple/echo/Echo_i.h | 68 |
1 files changed, 68 insertions, 0 deletions
diff --git a/trunk/TAO/examples/Simple/echo/Echo_i.h b/trunk/TAO/examples/Simple/echo/Echo_i.h new file mode 100644 index 00000000000..1b782cce796 --- /dev/null +++ b/trunk/TAO/examples/Simple/echo/Echo_i.h @@ -0,0 +1,68 @@ +// -*- C++ -*- +// $Id$ + +// ============================================================================ +// +// = LIBRARY +// TAO/tests/Simple/echo +// +// = FILENAME +// Echo_i.h +// +// = DESCRIPTION +// This class implements the Echo IDL interface. +// +// = AUTHOR +// Kirthika Parameswaran <kirthika@cs.wustl.edu> +// +// ============================================================================ + +#ifndef ECHO_I_H +#define ECHO_I_H + +#include "EchoS.h" + +class Echo_i : public POA_Echo +{ + // = TITLE + // Echo Object Implementation + // + // = DESCRIPTION + // The object implementation performs teh following functions: + // -- To return the string which needs to be displayed + // from the server. + // -- shuts down the server +public: + // = Initialization and termination methods. + Echo_i (void); + // Constructor. + + ~Echo_i (void); + // Destructor. + + virtual Echo::List *echo_list (const char *mesg + ACE_ENV_ARG_DECL) + ACE_THROW_SPEC ((CORBA::SystemException)); + // Return the mesg string back from the server. + + virtual char *echo_string (const char *mesg + ACE_ENV_ARG_DECL) + ACE_THROW_SPEC ((CORBA::SystemException)); + // Return the mesg string back from the server. + + virtual void shutdown (ACE_ENV_SINGLE_ARG_DECL) + ACE_THROW_SPEC ((CORBA::SystemException)); + // Shutdown the server. + + void orb (CORBA::ORB_ptr o); + // Set the ORB pointer. + +private: + CORBA::ORB_var orb_; + // ORB pointer. + + ACE_UNIMPLEMENTED_FUNC (void operator= (const Echo_i&)) + // Keeping g++ 2.7.2 happy.. +}; + +#endif /* ECHO_I_H */ |