Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

Managed_Types.cpp

Go to the documentation of this file.
00001 #include "tao_pch.h"
00002 // $Id: Managed_Types.cpp,v 1.1.1.2.40.1 2003/03/14 16:05:14 chad Exp $
00003 
00004 #include "tao/Managed_Types.h"
00005 #include "tao/ORB.h"
00006 
00007 #if !defined (__ACE_INLINE__)
00008 #include "tao/Managed_Types.i"
00009 #endif /* __ACE_INLINE__ */
00010 
00011 ACE_RCSID(tao, Managed_Types, "$Id: Managed_Types.cpp,v 1.1.1.2.40.1 2003/03/14 16:05:14 chad Exp $")
00012 
00013 // assignment from CORBA::String_var makes a copy
00014 TAO_String_Manager&
00015 TAO_String_Manager::operator= (const CORBA::String_var &var)
00016 {
00017   CORBA::string_free (this->ptr_);
00018   this->ptr_ = CORBA::string_dup (var.in ());
00019   return *this;
00020 }
00021 
00022 // assignment from String_var
00023 TAO_SeqElem_String_Manager&
00024 TAO_SeqElem_String_Manager::operator= (const CORBA::String_var &var)
00025 {
00026   if (this->release_)
00027     CORBA::string_free (*this->ptr_);
00028   *this->ptr_ = CORBA::string_dup (var.in ());
00029   return *this;
00030 }
00031 
00032 // ****************************************************************
00033 
00034 // assignment from CORBA::WString_var makes a copy
00035 TAO_WString_Manager&
00036 TAO_WString_Manager::operator= (const CORBA::WString_var &var)
00037 {
00038   CORBA::wstring_free (this->ptr_);
00039   this->ptr_ = CORBA::wstring_dup (var.in ());
00040   return *this;
00041 }
00042 
00043 // assignment from WString_var
00044 TAO_SeqElem_WString_Manager&
00045 TAO_SeqElem_WString_Manager::operator= (const CORBA::WString_var &var)
00046 {
00047   if (this->release_)
00048     CORBA::wstring_free (*this->ptr_);
00049   *this->ptr_ = CORBA::wstring_dup (var.in ());
00050   return *this;
00051 }

Generated on Mon Jun 16 13:48:53 2003 for TAO by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002