summaryrefslogtreecommitdiff
path: root/TAO/tests/Hello/Hello.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/tests/Hello/Hello.cpp')
-rw-r--r--TAO/tests/Hello/Hello.cpp25
1 files changed, 25 insertions, 0 deletions
diff --git a/TAO/tests/Hello/Hello.cpp b/TAO/tests/Hello/Hello.cpp
new file mode 100644
index 00000000000..ed757e48b2a
--- /dev/null
+++ b/TAO/tests/Hello/Hello.cpp
@@ -0,0 +1,25 @@
+//
+// $Id$
+//
+#include "Hello.h"
+
+ACE_RCSID(Hello, Hello, "$Id$")
+
+Hello::Hello (CORBA::ORB_ptr orb)
+ : orb_ (CORBA::ORB::_duplicate (orb))
+{
+}
+
+char *
+Hello::get_string (CORBA::Environment &)
+ ACE_THROW_SPEC ((CORBA::SystemException))
+{
+ return CORBA::string_dup ("Hello there!");
+}
+
+void
+Hello::shutdown (CORBA::Environment &ACE_TRY_ENV)
+ ACE_THROW_SPEC ((CORBA::SystemException))
+{
+ this->orb_->shutdown (0, ACE_TRY_ENV);
+}