summaryrefslogtreecommitdiff
path: root/TAO/tests/Simple/echo/Echo_i.h
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/tests/Simple/echo/Echo_i.h')
-rw-r--r--TAO/tests/Simple/echo/Echo_i.h58
1 files changed, 58 insertions, 0 deletions
diff --git a/TAO/tests/Simple/echo/Echo_i.h b/TAO/tests/Simple/echo/Echo_i.h
new file mode 100644
index 00000000000..c8214fefde9
--- /dev/null
+++ b/TAO/tests/Simple/echo/Echo_i.h
@@ -0,0 +1,58 @@
+// -*- 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>
+//
+// ============================================================================
+
+#if !defined (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 char *echo (const char *mesg,
+ CORBA::Environment &env);
+ // Return the mesg string back from the server.
+
+ virtual void shutdown (CORBA::Environment &env);
+ // Shutdown the server.
+
+ void orb (CORBA::ORB_ptr o);
+ // Set the ORB pointer.
+
+private:
+ CORBA::ORB_var orb_;
+ // ORB pointer.
+};
+
+#endif /* ECHO_I_H */