summaryrefslogtreecommitdiff
path: root/TAO/CIAO/docs/tutorial/Hello/hello_exec.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/CIAO/docs/tutorial/Hello/hello_exec.cpp')
-rw-r--r--TAO/CIAO/docs/tutorial/Hello/hello_exec.cpp111
1 files changed, 0 insertions, 111 deletions
diff --git a/TAO/CIAO/docs/tutorial/Hello/hello_exec.cpp b/TAO/CIAO/docs/tutorial/Hello/hello_exec.cpp
deleted file mode 100644
index 3c2c2bb41bf..00000000000
--- a/TAO/CIAO/docs/tutorial/Hello/hello_exec.cpp
+++ /dev/null
@@ -1,111 +0,0 @@
-// $Id$
-
-#include "hello_exec.h"
-
-hello_example::HelloWorld_Impl::HelloWorld_Impl ()
-{
-}
-
-hello_example::HelloWorld_Impl::~HelloWorld_Impl ()
-{
-}
-
-char *
-hello_example::HelloWorld_Impl::sayhello (const char *username
- ACE_ENV_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC ((CORBA::SystemException))
-{
- static const char *fmt = "Hello World message for ";
-
- CORBA::String_var str =
- CORBA::string_alloc (ACE_OS::strlen (fmt) +
- ACE_OS::strlen (username) +
- 1);
-
- ACE_OS::strcpy (str.inout (), fmt);
- ACE_OS::strcat (str.inout (), username);
-
- return str._retn ();
-}
-
-
-void
-hello_example::HelloWorld_Impl::set_session_context (
- Components::SessionContext_ptr ctx
- ACE_ENV_ARG_DECL)
- ACE_THROW_SPEC ((CORBA::SystemException,
- Components::CCMException))
-{
- ACE_DEBUG ((LM_DEBUG,
- "hello_example::HelloWorld_Impl::set_session_context\n"));
-
- this->context_ =
- hello_example::HelloWorld_Exec_Context::_narrow (ctx
- ACE_ENV_ARG_PARAMETER);
-
- ACE_CHECK;
-
- if (CORBA::is_nil (this->context_.in ()))
- ACE_THROW (CORBA::INTERNAL ());
- // Urm, we actually discard exceptions thown from this operation.
-}
-
-void
-hello_example::HelloWorld_Impl::ciao_preactivate (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC ((CORBA::SystemException,
- Components::CCMException))
-{
-}
-
-void
-hello_example::HelloWorld_Impl::ccm_activate (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC ((CORBA::SystemException,
- Components::CCMException))
-{
-}
-
-void
-hello_example::HelloWorld_Impl::ciao_postactivate (
- ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC ((CORBA::SystemException,
- Components::CCMException))
-{
-}
-
-void
-hello_example::HelloWorld_Impl::ccm_passivate (
- ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC ((CORBA::SystemException,
- Components::CCMException))
-{
-}
-
-void
-hello_example::HelloWorld_Impl::ccm_remove (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC ((CORBA::SystemException,
- Components::CCMException))
-{
-}
-
-
-hello_example::HelloHome_Impl::HelloHome_Impl ()
-{
-}
-
-hello_example::HelloHome_Impl::~HelloHome_Impl ()
-{
-}
-
-Components::EnterpriseComponent_ptr
-hello_example::HelloHome_Impl::create (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC ((Components::CCMException,
- CORBA::SystemException))
-{
- return new hello_example::HelloWorld_Impl ();
-}
-
-extern "C" HELLO_EXEC_Export ::Components::HomeExecutorBase_ptr
-createHelloHome_Impl (void)
-{
- return new hello_example::HelloHome_Impl ();
-}