summaryrefslogtreecommitdiff
path: root/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/create_persistent_poa.cpp
diff options
context:
space:
mode:
authorWilliam R. Otte <wotte@dre.vanderbilt.edu>2006-07-24 15:50:11 +0000
committerWilliam R. Otte <wotte@dre.vanderbilt.edu>2006-07-24 15:50:11 +0000
commit6b846cf03c0bcbd8c276cb0af61a181e5f98eaae (patch)
treeda50d054f9c761c3f6a5923f6979e93306c56d68 /TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/create_persistent_poa.cpp
parent0e555b9150d38e3b3473ba325b56db2642e6352b (diff)
downloadATCD-6b846cf03c0bcbd8c276cb0af61a181e5f98eaae.tar.gz
Repo restructuring
Diffstat (limited to 'TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/create_persistent_poa.cpp')
-rw-r--r--TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/create_persistent_poa.cpp49
1 files changed, 0 insertions, 49 deletions
diff --git a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/create_persistent_poa.cpp b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/create_persistent_poa.cpp
deleted file mode 100644
index fe5cd5dbe41..00000000000
--- a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/create_persistent_poa.cpp
+++ /dev/null
@@ -1,49 +0,0 @@
-// $Id$
-
-#include "orbsvcs/FtRtEvent/EventChannel/create_persistent_poa.h"
-
-ACE_RCSID (EventChannel,
- create_persistent_poa,
- "$Id$")
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
-PortableServer::POA_var create_persistent_poa(PortableServer::POA_var root_poa,
- PortableServer::POAManager_var mgr,
- const char* name,
- CORBA::PolicyList& policy_list
- ACE_ENV_ARG_DECL)
-{
- PortableServer::POA_var result;
- PortableServer::LifespanPolicy_var lifespan =
- root_poa->create_lifespan_policy(PortableServer::PERSISTENT
- ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN(result);
-
- // create a USER_ID IdAssignmentPolicy object
- PortableServer::IdAssignmentPolicy_var assign =
- root_poa->create_id_assignment_policy(PortableServer::USER_ID
- ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN(result);
-
- // create PolicyList.
- size_t orig_len = policy_list.length();
- policy_list.length(orig_len+2);
- ACE_CHECK_RETURN(result);
- policy_list[orig_len+0]=
- PortableServer::LifespanPolicy::_duplicate(lifespan.in());
- ACE_CHECK_RETURN(result);
- policy_list[orig_len+1]=
- PortableServer::IdAssignmentPolicy::_duplicate(assign.in());
- ACE_CHECK_RETURN(result);
-
- // create the child POA
- result = root_poa->create_POA(name, mgr.in(), policy_list
- ACE_ENV_ARG_PARAMETER);
-
- ACE_CHECK_RETURN(result);
-
- return result;
-}
-
-TAO_END_VERSIONED_NAMESPACE_DECL