diff options
author | seibelr <seibelr@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2006-11-24 22:12:20 +0000 |
---|---|---|
committer | seibelr <seibelr@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2006-11-24 22:12:20 +0000 |
commit | 47b676670dc9373bc77af80388e0b51e36134738 (patch) | |
tree | aacce0809279e1d142e7b196a84ff10dfbdae4d0 /CIAO/ciao/Cookies.cpp | |
parent | 3dd4e2fe6c64de3a9db04757eade78d764b578f1 (diff) | |
download | ATCD-GH5_0port.tar.gz |
Added the ACE and TAO for this branchGH5_0port
Diffstat (limited to 'CIAO/ciao/Cookies.cpp')
-rw-r--r-- | CIAO/ciao/Cookies.cpp | 74 |
1 files changed, 0 insertions, 74 deletions
diff --git a/CIAO/ciao/Cookies.cpp b/CIAO/ciao/Cookies.cpp deleted file mode 100644 index 4a319577be4..00000000000 --- a/CIAO/ciao/Cookies.cpp +++ /dev/null @@ -1,74 +0,0 @@ -// $Id$ -#include "Cookies.h" - -#if !defined (__ACE_INLINE__) -#include "Cookies.inl" -#endif /* !defined INLINE */ - -ACE_RCSID (ciao, - Cookies, - "$Id$") - -namespace CIAO -{ - Map_Key_Cookie::Map_Key_Cookie (const ACE_Active_Map_Manager_Key &key) - { - this->cookieValue ().length (ACE_Active_Map_Manager_Key::size ()); - key.encode (this->cookieValue ().get_buffer (0)); - } - - Map_Key_Cookie::~Map_Key_Cookie (void) - { - } - - bool - Map_Key_Cookie::insert (ACE_Active_Map_Manager_Key &key) - { - this->cookieValue ().length (ACE_Active_Map_Manager_Key::size ()); - key.encode (this->cookieValue ().get_buffer (0)); - return true; - } - - bool - Map_Key_Cookie::extract (::Components::Cookie *ck, - ACE_Active_Map_Manager_Key &key) - { - Map_Key_Cookie *c = - dynamic_cast <Map_Key_Cookie *> (ck); - - if (c == 0) - return false; - - ::CORBA::OctetSeq *x = c->get_cookie (); - - if (x->length () != ACE_Active_Map_Manager_Key::size ()) - return false; - - key.decode (x->get_buffer ()); - - return true; - } - - ::CORBA::OctetSeq * - Map_Key_Cookie::get_cookie (void) - { - return &this->cookieValue (); - } - - //======================================================== - CORBA::ValueBase * - Map_Key_Cookie_init::create_for_unmarshal (ACE_ENV_SINGLE_ARG_DECL) - { - CORBA::ValueBase *ret_val = 0; - - ACE_NEW_THROW_EX (ret_val, - CIAO::Map_Key_Cookie, - CORBA::NO_MEMORY ()); - - // @@ (OO) An "ACE_CHECK_RETURN (0) is missing here. - - return ret_val; - } - - -} |