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

Name_Space.cpp

Go to the documentation of this file.
00001 #include "ace_pch.h"
00002 // Name_Space.cpp
00003 // $Id: Name_Space.cpp,v 1.1.1.4.2.1 2003/03/13 19:44:21 chad Exp $
00004 
00005 #include "ace/Name_Space.h"
00006 
00007 ACE_RCSID(ace, Name_Space, "$Id: Name_Space.cpp,v 1.1.1.4.2.1 2003/03/13 19:44:21 chad Exp $")
00008 
00009 ACE_Name_Binding::ACE_Name_Binding (void)
00010   : type_ (ACE_OS::strdup (""))
00011 {
00012   ACE_TRACE ("ACE_Name_Binding::ACE_Name_Binding");
00013 }
00014 
00015 
00016 ACE_Name_Binding::~ACE_Name_Binding (void)
00017 {
00018   ACE_TRACE ("ACE_Name_Binding::~ACE_Name_Binding");
00019   ACE_OS::free ((void *) this->type_);
00020 }
00021 
00022 ACE_Name_Binding::ACE_Name_Binding (const ACE_NS_WString &name,
00023                                     const ACE_NS_WString &value,
00024                                     const char *type)
00025   : name_ (name),
00026     value_ (value),
00027     type_ (type == 0 ? ACE_OS::strdup ("") : ACE_OS::strdup (type))
00028 {
00029   ACE_TRACE ("ACE_Name_Binding::ACE_Name_Binding");
00030 }
00031 
00032 ACE_Name_Binding::ACE_Name_Binding (const ACE_Name_Binding &s)
00033   : name_ (s.name_),
00034     value_ (s.value_),
00035     type_ (ACE_OS::strdup (s.type_))
00036 {
00037   ACE_TRACE ("ACE_Name_Binding::ACE_Name_Binding");
00038 }
00039 
00040 void
00041 ACE_Name_Binding::operator = (const ACE_Name_Binding &s)
00042 {
00043   ACE_TRACE ("ACE_Name_Binding::operator =");
00044 
00045   if (this != &s)
00046     {
00047       ACE_OS::free ((void *) this->type_);
00048       this->name_ = s.name_;
00049       this->value_ = s.value_;
00050       this->type_ = ACE_OS::strdup (s.type_);
00051     }
00052 }
00053 
00054 int
00055 ACE_Name_Binding::operator == (const ACE_Name_Binding &s) const
00056 {
00057   ACE_TRACE ("ACE_Name_Binding::operator ==");
00058   return this->name_ == s.name_
00059     && this->value_ == s.value_
00060     && ACE_OS::strcmp (this->type_, s.type_) == 0;
00061 }
00062 
00063 ACE_Name_Space::~ACE_Name_Space (void)
00064 {
00065   ACE_TRACE ("ACE_Name_Space::~ACE_Name_Space");
00066 }

Generated on Mon Jun 16 11:20:28 2003 for ACE by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002