diff options
author | alex <alex@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1998-06-30 21:30:31 +0000 |
---|---|---|
committer | alex <alex@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1998-06-30 21:30:31 +0000 |
commit | c09550901dc899dbfcbca3688512071d70f6eba9 (patch) | |
tree | 7b65fac60bb577b0d2aa95241de24a198142e90f /TAO/tao/Operation_Table.cpp | |
parent | e7706d5bf4f5ec13054a349f80675698d50294bf (diff) | |
download | ATCD-c09550901dc899dbfcbca3688512071d70f6eba9.tar.gz |
*** empty log message ***
Diffstat (limited to 'TAO/tao/Operation_Table.cpp')
-rw-r--r-- | TAO/tao/Operation_Table.cpp | 48 |
1 files changed, 45 insertions, 3 deletions
diff --git a/TAO/tao/Operation_Table.cpp b/TAO/tao/Operation_Table.cpp index b76acddbf39..91e26e4f74b 100644 --- a/TAO/tao/Operation_Table.cpp +++ b/TAO/tao/Operation_Table.cpp @@ -46,7 +46,7 @@ TAO_Dynamic_Hash_OpTable::~TAO_Dynamic_Hash_OpTable (void) // Initialize an iterator. We need to go thru each entry and free // up storage allocated to hold the external ids. In this case, // these are strings. - OP_MAP_MANAGER::ITERATOR iterator (this->hash_); + OP_MAP_MANAGER::ITERATOR iterator (this->hash_); for (OP_MAP_MANAGER::ENTRY *entry = 0; iterator.next (entry) != 0; @@ -54,11 +54,11 @@ TAO_Dynamic_Hash_OpTable::~TAO_Dynamic_Hash_OpTable (void) { // We had allocated memory and stored the string. So we free the // memory. - CORBA::string_free ((char *) entry->ext_id_); + CORBA::string_free ((char *) entry->ext_id_); entry->ext_id_ = 0; // We do not own this. So we just set it to 0. - entry->int_id_ = 0; + entry->int_id_ = 0; } } @@ -211,6 +211,48 @@ TAO_Active_Demux_OpTable_Entry::~TAO_Active_Demux_OpTable_Entry (void) this->skel_ptr_ = 0; // cannot delete this as we do not own it } +// Do nothing constructor. +TAO_Perfect_Hash_OpTable::TAO_Perfect_Hash_OpTable (void) +{ +} + +// Do nothing destrctor. +TAO_Perfect_Hash_OpTable::~TAO_Perfect_Hash_OpTable (void) +{ +} + + +// Uses <{opname}> to look up the skeleton function and pass it back +// in <{skelfunc}>. Returns non-negative integer on success, or -1 +// on failure. +int +TAO_Perfect_Hash_OpTable::find (const char *opname, + TAO_Skeleton &skelfunc) +{ + const TAO_operation_db_entry *entry = lookup (opname, + ACE_OS::strlen (opname)); + if (entry == 0) + ACE_ERROR_RETURN ((LM_ERROR, + "TAO_Perfect_Hash_Table:find failed\n"), + -1); + + // Valid entry. Figure out the skel_ptr. + skelfunc = entry->skel_ptr_; + + return 0; +} + +int +TAO_Perfect_Hash_OpTable::bind (const char *opname, + const TAO_Skeleton skel_ptr) +{ + ACE_UNUSED_ARG (opname); + ACE_UNUSED_ARG (skel_ptr); + return 0; +} + + + // constructor TAO_Operation_Table_Parameters::TAO_Operation_Table_Parameters (void) : strategy_ (0), |