summaryrefslogtreecommitdiff
path: root/TAO/tao/ObjRefTemplate/ObjectReferenceTemplate_i.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/tao/ObjRefTemplate/ObjectReferenceTemplate_i.cpp')
-rw-r--r--TAO/tao/ObjRefTemplate/ObjectReferenceTemplate_i.cpp80
1 files changed, 0 insertions, 80 deletions
diff --git a/TAO/tao/ObjRefTemplate/ObjectReferenceTemplate_i.cpp b/TAO/tao/ObjRefTemplate/ObjectReferenceTemplate_i.cpp
deleted file mode 100644
index 5aade26a354..00000000000
--- a/TAO/tao/ObjRefTemplate/ObjectReferenceTemplate_i.cpp
+++ /dev/null
@@ -1,80 +0,0 @@
-#include "tao/ObjRefTemplate/ObjectReferenceTemplate_i.h"
-#include "tao/PortableServer/Root_POA.h"
-
-#include "tao/CORBA_String.h"
-#include "tao/ORB_Constants.h"
-
-ACE_RCSID (ORT,
- ObjectReferenceTemplate_i,
- "$Id$")
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
-namespace TAO
-{
- ObjectReferenceTemplate::ObjectReferenceTemplate (
- const char *server_id,
- const char *orb_id,
- PortableInterceptor::AdapterName *adapter_name,
- PortableServer::POA_ptr poa)
- : server_id_ (server_id),
- orb_id_ (orb_id),
- adapter_name_ (adapter_name),
- poa_ (PortableServer::POA::_duplicate (poa))
- {
- }
-
- ObjectReferenceTemplate::~ObjectReferenceTemplate (void)
- {
- }
-
- char *
- ObjectReferenceTemplate::server_id (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC ((CORBA::SystemException))
- {
- return CORBA::string_dup (this->server_id_);
- }
-
- char *
- ObjectReferenceTemplate::orb_id (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC ((CORBA::SystemException))
- {
- return CORBA::string_dup (this->orb_id_);
- }
-
- PortableInterceptor::AdapterName *
- ObjectReferenceTemplate::adapter_name (ACE_ENV_SINGLE_ARG_DECL)
- ACE_THROW_SPEC ((CORBA::SystemException))
- {
- PortableInterceptor::AdapterName *adapter_name = 0;
-
- ACE_NEW_THROW_EX (adapter_name,
- PortableInterceptor::AdapterName (
- *(this->adapter_name_)),
- CORBA::NO_MEMORY (
- CORBA::SystemException::_tao_minor_code (
- TAO::VMCID,
- ENOMEM),
- CORBA::COMPLETED_NO));
- ACE_CHECK_RETURN (0);
-
- return adapter_name;
- }
-
- CORBA::Object_ptr
- ObjectReferenceTemplate::make_object (
- const char *,
- const PortableInterceptor::ObjectId &
- ACE_ENV_ARG_DECL)
- ACE_THROW_SPEC ((CORBA::SystemException))
- {
- if (CORBA::is_nil(poa_.in()))
- ACE_THROW_RETURN (CORBA::BAD_INV_ORDER (), CORBA::Object::_nil ());
-
- TAO_Root_POA* tao_poa = dynamic_cast<TAO_Root_POA*>(poa_.in());
-
- return tao_poa->invoke_key_to_object (ACE_ENV_SINGLE_ARG_PARAMETER);
- }
-}
-
-TAO_END_VERSIONED_NAMESPACE_DECL