ACE_Token_Name Class Reference

Allows Token_Manger to identify tokens. More...

#include <Local_Tokens.h>

List of all members.

Public Member Functions

 ACE_Token_Name (const ACE_TCHAR *token_name=0)
 Construction.

 ACE_Token_Name (const ACE_Token_Name &rhs)
 Copy construction.

virtual ~ACE_Token_Name (void)
 Destructor.

void operator= (const ACE_Token_Name &rhs)
 Copy.

bool operator== (const ACE_Token_Name &rhs) const
 Comparison.

const ACE_TCHARname (void) const
 Get the token name.

void name (const ACE_TCHAR *new_name)
 Set the token name.

void dump (void) const
 Dump the state of the class.


Private Attributes

ACE_TCHAR token_name_ [ACE_MAXTOKENNAMELEN]
 Name of the token.


Detailed Description

Allows Token_Manger to identify tokens.

For now, this is just a string. We need a string class anyway to use in . Having this class (instead of ) allows us to easily change if needed. For instance, we may choose to identify tokens by name and *type* in the future.

Definition at line 693 of file Local_Tokens.h.


Constructor & Destructor Documentation

ACE_Token_Name::ACE_Token_Name const ACE_TCHAR token_name = 0  ) 
 

Construction.

Definition at line 1488 of file Local_Tokens.cpp.

References ACE_TCHAR, ACE_TRACE, and name().

01489 {
01490   ACE_TRACE ("ACE_Token_Name::ACE_Token_Name");
01491   this->name (token_name);
01492 }

ACE_Token_Name::ACE_Token_Name const ACE_Token_Name rhs  ) 
 

Copy construction.

Definition at line 1494 of file Local_Tokens.cpp.

References ACE_TRACE, and name().

01495 {
01496   ACE_TRACE ("ACE_Token_Name::ACE_Token_Name");
01497   this->name (rhs.name ());
01498 }

ACE_Token_Name::~ACE_Token_Name void   )  [virtual]
 

Destructor.

Definition at line 1500 of file Local_Tokens.cpp.

References ACE_TRACE.

01501 {
01502   ACE_TRACE ("ACE_Token_Name::~ACE_Token_Name");
01503 }


Member Function Documentation

void ACE_Token_Name::dump void   )  const
 

Dump the state of the class.

Definition at line 1506 of file Local_Tokens.cpp.

References ACE_BEGIN_DUMP, ACE_DEBUG, ACE_END_DUMP, ACE_LIB_TEXT, ACE_TRACE, and LM_DEBUG.

01507 {
01508 #if defined (ACE_HAS_DUMP)
01509   ACE_TRACE ("ACE_Token_Name::dump");
01510   ACE_DEBUG ((LM_DEBUG, ACE_BEGIN_DUMP, this));
01511   ACE_DEBUG ((LM_DEBUG,  ACE_LIB_TEXT ("ACE_Token_Name::dump:\n")
01512                         ACE_LIB_TEXT (" token_name_ = %s\n"),
01513               token_name_ == 0 ? ACE_LIB_TEXT ("no name") : token_name_));
01514   ACE_DEBUG ((LM_DEBUG, ACE_END_DUMP));
01515 #endif /* ACE_HAS_DUMP */
01516 }

void ACE_Token_Name::name const ACE_TCHAR new_name  ) 
 

Set the token name.

const ACE_TCHAR* ACE_Token_Name::name void   )  const
 

Get the token name.

Referenced by ACE_Token_Name().

void ACE_Token_Name::operator= const ACE_Token_Name rhs  ) 
 

Copy.

bool ACE_Token_Name::operator== const ACE_Token_Name rhs  )  const
 

Comparison.


Member Data Documentation

ACE_TCHAR ACE_Token_Name::token_name_[ACE_MAXTOKENNAMELEN] [private]
 

Name of the token.

Definition at line 722 of file Local_Tokens.h.


The documentation for this class was generated from the following files:
Generated on Thu Nov 9 11:31:46 2006 for ACE by doxygen 1.3.6