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

ACE_Name_Binding Class Reference

Maintains a mapping from name to value and type. More...

#include <Name_Space.h>

Collaboration diagram for ACE_Name_Binding:

Collaboration graph
[legend]
List of all members.

Public Methods

 ACE_Name_Binding (const ACE_NS_WString &n, const ACE_NS_WString &v, const char *t)
 Main constructor that initializes all the fields. More...

 ACE_Name_Binding (void)
 Default constructor. More...

 ACE_Name_Binding (const ACE_Name_Binding &)
 Copy constructor. More...

void operator= (const ACE_Name_Binding &)
 Assignment operator. More...

 ~ACE_Name_Binding (void)
 Destructor. More...

int operator== (const ACE_Name_Binding &s) const
 Test for equality. More...


Public Attributes

ACE_NS_WString name_
 Name of the binding. More...

ACE_NS_WString value_
 Value of the binding. More...

char * type_
 Type of the binding. More...


Detailed Description

Maintains a mapping from name to value and type.

Definition at line 35 of file Name_Space.h.


Constructor & Destructor Documentation

ACE_Name_Binding::ACE_Name_Binding const ACE_NS_WString   n,
const ACE_NS_WString   v,
const char *    t
 

Main constructor that initializes all the fields.

Definition at line 22 of file Name_Space.cpp.

References ACE_TRACE.

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 }

ACE_Name_Binding::ACE_Name_Binding void   
 

Default constructor.

Definition at line 9 of file Name_Space.cpp.

References ACE_TRACE.

00010   : type_ (ACE_OS::strdup (""))
00011 {
00012   ACE_TRACE ("ACE_Name_Binding::ACE_Name_Binding");
00013 }

ACE_Name_Binding::ACE_Name_Binding const ACE_Name_Binding &   
 

Copy constructor.

Definition at line 32 of file Name_Space.cpp.

References ACE_TRACE.

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 }

ACE_Name_Binding::~ACE_Name_Binding void   
 

Destructor.

Definition at line 16 of file Name_Space.cpp.

References ACE_TRACE, and ACE_OS_Memory::free.

00017 {
00018   ACE_TRACE ("ACE_Name_Binding::~ACE_Name_Binding");
00019   ACE_OS::free ((void *) this->type_);
00020 }


Member Function Documentation

void ACE_Name_Binding::operator= const ACE_Name_Binding &   
 

Assignment operator.

Definition at line 41 of file Name_Space.cpp.

References ACE_TRACE, ACE_OS_Memory::free, name_, ACE_OS_String::strdup, type_, and value_.

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 }

int ACE_Name_Binding::operator== const ACE_Name_Binding &    s const
 

Test for equality.

Definition at line 55 of file Name_Space.cpp.

References ACE_TRACE, name_, ACE_OS_String::strcmp, type_, and value_.

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 }


Member Data Documentation

ACE_NS_WString ACE_Name_Binding::name_
 

Name of the binding.

Definition at line 60 of file Name_Space.h.

Referenced by ACE_Registry_Name_Space::list_names, operator=, and operator==.

char* ACE_Name_Binding::type_
 

Type of the binding.

Definition at line 66 of file Name_Space.h.

Referenced by operator=, and operator==.

ACE_NS_WString ACE_Name_Binding::value_
 

Value of the binding.

Definition at line 63 of file Name_Space.h.

Referenced by ACE_Registry_Name_Space::list_values, operator=, and operator==.


The documentation for this class was generated from the following files:
Generated on Mon Jun 16 12:50:51 2003 for ACE by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002