TAO::TypeCode::Base_Attributes< STRING_TYPE > Class Template Reference

Attributes contained by most TypeCodes with complex parameter lists. More...

#include <TypeCode_Base_Attributes.h>

Collaboration diagram for TAO::TypeCode::Base_Attributes< STRING_TYPE >:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Base_Attributes (char const *id, char const *name)
 Constructor.

 Base_Attributes (char const *id)
 Constructor used by recursive TypeCodes.

char const * id (void) const
 Get the RepositoryId globally identifying the type.

char const * name (void) const
void name (char const *the_name)

Private Attributes

STRING_TYPE const  id_
 The RepositoryId globally identifying the type.

STRING_TYPE name_

Detailed Description

template<typename STRING_TYPE>
class TAO::TypeCode::Base_Attributes< STRING_TYPE >

Attributes contained by most TypeCodes with complex parameter lists.

Most TypeCodes with complex parameter lists (see Section 15.3.5.1 "TypeCode" in the CORBA specification) contain these attributes, namely a repository ID and a name.

Definition at line 44 of file TypeCode_Base_Attributes.h.


Constructor & Destructor Documentation

template<typename STRING_TYPE>
TAO_BEGIN_VERSIONED_NAMESPACE_DECL ACE_INLINE TAO::TypeCode::Base_Attributes< STRING_TYPE >::Base_Attributes char const *  id,
char const *  name
 

Constructor.

Definition at line 11 of file TypeCode_Base_Attributes.inl.

00014   : id_ (id),
00015     name_ (name)
00016 {
00017 }

template<typename STRING_TYPE>
ACE_INLINE TAO::TypeCode::Base_Attributes< STRING_TYPE >::Base_Attributes char const *  id  ) 
 

Constructor used by recursive TypeCodes.

Definition at line 21 of file TypeCode_Base_Attributes.inl.

00023   : id_ (id),
00024     name_ ()
00025 {
00026   // Only used in the dynamic (when STRING_TYPE == CORBA::String_var)
00027   // recursive TypeCode case.
00028 }


Member Function Documentation

template<typename STRING_TYPE>
ACE_INLINE char const * TAO::TypeCode::Base_Attributes< STRING_TYPE >::id void   )  const
 

Get the RepositoryId globally identifying the type.

Definition at line 32 of file TypeCode_Base_Attributes.inl.

00033 {
00034   return Traits<STRING_TYPE>::get_string (this->id_);
00035 }

template<typename STRING_TYPE>
ACE_INLINE void TAO::TypeCode::Base_Attributes< STRING_TYPE >::name char const *  the_name  ) 
 

Note:
This method only used when creating a recursive TypeCode.

Definition at line 46 of file TypeCode_Base_Attributes.inl.

00047 {
00048   // This method will only be instantiated in the dynamic TypeCode
00049   // case, i.e. when STRING_TYPE is CORBA::String_var.
00050 
00051   this->name_ = the_name;
00052 }

template<typename STRING_TYPE>
ACE_INLINE char const * TAO::TypeCode::Base_Attributes< STRING_TYPE >::name void   )  const
 

Get the simple name identifying the type within its enclosing scope.

Definition at line 39 of file TypeCode_Base_Attributes.inl.

00040 {
00041   return Traits<STRING_TYPE>::get_string (this->name_);
00042 }


Member Data Documentation

template<typename STRING_TYPE>
STRING_TYPE const TAO::TypeCode::Base_Attributes< STRING_TYPE >::id_ [private]
 

The RepositoryId globally identifying the type.

Definition at line 73 of file TypeCode_Base_Attributes.h.

template<typename STRING_TYPE>
STRING_TYPE TAO::TypeCode::Base_Attributes< STRING_TYPE >::name_ [private]
 

The simple name identifying the type within its enclosing scope.

Definition at line 77 of file TypeCode_Base_Attributes.h.


The documentation for this class was generated from the following files:
Generated on Sun Jan 27 13:22:13 2008 for TAO_AnyTypeCode by doxygen 1.3.6