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

ACE_Token_Name Class Reference

Allows Token_Manger to identify tokens. More...

#include <Local_Tokens.h>

List of all members.

Public Methods

 ACE_Token_Name (const ACE_TCHAR *token_name=0)
 Construction. More...

 ACE_Token_Name (const ACE_Token_Name &rhs)
 Copy construction. More...

virtual ~ACE_Token_Name (void)
 Destructor. More...

void operator= (const ACE_Token_Name &rhs)
 Copy. More...

int operator== (const ACE_Token_Name &rhs) const
 Comparison. More...

const ACE_TCHARname (void) const
 Get the token name. More...

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

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


Private Attributes

ACE_TCHAR token_name_ [ACE_MAXTOKENNAMELEN]
 Name of the token. More...


Detailed Description

Allows Token_Manger to identify tokens.

For now, this is just a string. We need a string class anyway to use in <ACE_Map_Manager>. Having this class (instead of <ACE_SString>) 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 688 of file Local_Tokens.h.


Constructor & Destructor Documentation

ACE_Token_Name::ACE_Token_Name const ACE_TCHAR   token_name = 0
 

Construction.

Definition at line 1400 of file Local_Tokens.cpp.

References ACE_TCHAR, ACE_TRACE, and name.

01401 {
01402   ACE_TRACE ("ACE_Token_Name::ACE_Token_Name");
01403   this->name (token_name);
01404 }

ACE_Token_Name::ACE_Token_Name const ACE_Token_Name &    rhs
 

Copy construction.

Definition at line 1406 of file Local_Tokens.cpp.

References ACE_TRACE, and name.

01407 {
01408   ACE_TRACE ("ACE_Token_Name::ACE_Token_Name");
01409   this->name (rhs.name ());
01410 }

ACE_Token_Name::~ACE_Token_Name void    [virtual]
 

Destructor.

Definition at line 1412 of file Local_Tokens.cpp.

References ACE_TRACE.

01413 {
01414   ACE_TRACE ("ACE_Token_Name::~ACE_Token_Name");
01415 }


Member Function Documentation

void ACE_Token_Name::dump void    const
 

Dump the state of the class.

Definition at line 1418 of file Local_Tokens.cpp.

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

01419 {
01420   ACE_TRACE ("ACE_Token_Name::dump");
01421   ACE_DEBUG ((LM_DEBUG, ACE_BEGIN_DUMP, this));
01422 #if defined (ACE_HAS_BROKEN_CONDITIONAL_STRING_CASTS)
01423   ACE_DEBUG ((LM_DEBUG,  (char *) "ACE_Token_Name::dump:\n",
01424                         (char *) " token_name_ = %s\n",
01425               (char *) token_name_ == 0 ? (char *) "no name" : (char *) token_name_));
01426 #else /* ! defined (ACE_HAS_BROKEN_CONDITIONAL_STRING_CASTS) */
01427   ACE_DEBUG ((LM_DEBUG,  ACE_LIB_TEXT ("ACE_Token_Name::dump:\n")
01428                         ACE_LIB_TEXT (" token_name_ = %s\n"),
01429               token_name_ == 0 ? ACE_LIB_TEXT ("no name") : token_name_));
01430 #endif /* ! defined (ACE_HAS_BROKEN_CONDITIONAL_STRING_CASTS) */
01431   ACE_DEBUG ((LM_DEBUG, ACE_END_DUMP));
01432 }

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.

int 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 717 of file Local_Tokens.h.

Referenced by dump.


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