diff options
Diffstat (limited to 'TAO/tao/Profile.cpp')
-rw-r--r-- | TAO/tao/Profile.cpp | 100 |
1 files changed, 0 insertions, 100 deletions
diff --git a/TAO/tao/Profile.cpp b/TAO/tao/Profile.cpp deleted file mode 100644 index 4836ad21198..00000000000 --- a/TAO/tao/Profile.cpp +++ /dev/null @@ -1,100 +0,0 @@ -// $Id$ - -#include "tao/Profile.h" -#include "tao/Object_KeyC.h" - -#if !defined (__ACE_INLINE__) -#include "tao/Profile.i" -#endif /* __ACE_INLINE__ */ - -ACE_RCSID(tao, Profile, "$Id$") - -// **************************************************************** - -TAO_Profile::~TAO_Profile (void) -{ -} -// **************************************************************** - -TAO_Unknown_Profile::TAO_Unknown_Profile (CORBA::ULong tag) - : TAO_Profile (tag) -{ -} - -int -TAO_Unknown_Profile::parse_string (const char *, - CORBA::Environment &) -{ - // @@ THROW something???? - return -1; -} - -CORBA::String -TAO_Unknown_Profile::to_string (CORBA::Environment &) -{ - // @@ THROW something? - return 0; -} - -int -TAO_Unknown_Profile::decode (TAO_InputCDR& cdr) -{ - if ((cdr >> this->body_) == 0) - return -1; - return 0; -} - -int -TAO_Unknown_Profile::encode (TAO_OutputCDR &stream) const -{ - stream.write_ulong (this->tag ()); - return (stream << this->body_); -} - -const TAO_ObjectKey & -TAO_Unknown_Profile::object_key (void) const -{ - // @@ TODO this is wrong, but the function is deprecated anyway.... - static TAO_ObjectKey empty_key; - return empty_key; -} - -TAO_ObjectKey * -TAO_Unknown_Profile::_key (void) const -{ - return 0; -} - -CORBA::Boolean -TAO_Unknown_Profile::is_equivalent (const TAO_Profile* other_profile) -{ - if (other_profile->tag () != this->tag ()) - return 0; - - const TAO_Unknown_Profile *op = - ACE_dynamic_cast (const TAO_Unknown_Profile*, other_profile); - - return (CORBA::Boolean) (this->body_ == op->body_); -} - -CORBA::ULong -TAO_Unknown_Profile::hash (CORBA::ULong max, - CORBA::Environment &) -{ - return (ACE::hash_pjw (ACE_reinterpret_cast (const char*, - this->body_.get_buffer ()), - this->body_.length ()) % max); -} - -int -TAO_Unknown_Profile::addr_to_string (char * /* buffer */, - size_t /* length */) -{ - return -1; -} - -void -TAO_Unknown_Profile::reset_hint (void) -{ - // do nothing -} |