diff options
author | Ossama Othman <ossama-othman@users.noreply.github.com> | 1999-09-17 22:10:39 +0000 |
---|---|---|
committer | Ossama Othman <ossama-othman@users.noreply.github.com> | 1999-09-17 22:10:39 +0000 |
commit | 0349dec02a21fe24652e9cd1a2efd722848e1d4d (patch) | |
tree | cb4584b766a9255bd38f7b46fb5db7a95e73e3a2 /TAO/tao/params.cpp | |
parent | b2185197c5d8ab175eb5b1a52d1a765d6ae18adc (diff) | |
download | ATCD-0349dec02a21fe24652e9cd1a2efd722848e1d4d.tar.gz |
ChangeLogTag:Fri Sep 17 16:51:06 1999 Ossama Othman <othman@cs.wustl.edu>
Diffstat (limited to 'TAO/tao/params.cpp')
-rw-r--r-- | TAO/tao/params.cpp | 21 |
1 files changed, 15 insertions, 6 deletions
diff --git a/TAO/tao/params.cpp b/TAO/tao/params.cpp index c735a1c51a4..8d568452fb3 100644 --- a/TAO/tao/params.cpp +++ b/TAO/tao/params.cpp @@ -6,8 +6,6 @@ # include "tao/params.i" #endif /* __ACE_INLINE__ */ -#include "tao/IOR_LookupTable.h" - ACE_RCSID(tao, params, "$Id$") TAO_ORB_Parameters::TAO_ORB_Parameters (void) @@ -19,7 +17,7 @@ TAO_ORB_Parameters::TAO_ORB_Parameters (void) trading_service_port_ (0), implrepo_service_port_ (0), init_ref_ (), - ior_lookup_table_ (0), + ior_lookup_table_ (), default_init_ref_ (), sock_rcvbuf_size_ (ACE_DEFAULT_MAX_SOCKET_BUFSIZ), sock_sndbuf_size_ (ACE_DEFAULT_MAX_SOCKET_BUFSIZ), @@ -32,9 +30,20 @@ TAO_ORB_Parameters::TAO_ORB_Parameters (void) TAO_ORB_Parameters::~TAO_ORB_Parameters (void) { - // Delete the table. - delete this->ior_lookup_table_; - this->ior_lookup_table_ = 0; +} + +int +TAO_ORB_Parameters::add_to_ior_table (ACE_CString init_ref) +{ + int slot = init_ref.find ("="); + if (slot == ACE_CString::npos) + return -1; + + ACE_CString object_id = init_ref.substr (0, slot); + ACE_CString ior = init_ref.substr (slot + 1); + + // Add the objectID-IOR to the table and return the status. + return this->ior_lookup_table_.add_ior (object_id, ior); } int |