#include <Local_Tokens.h>
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_TCHAR * | name (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. |
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.
|
Construction.
Definition at line 1488 of file Local_Tokens.cpp. References ACE_TCHAR, ACE_TRACE, and name().
|
|
Copy construction.
Definition at line 1494 of file Local_Tokens.cpp. References ACE_TRACE, and name().
|
|
Destructor.
Definition at line 1500 of file Local_Tokens.cpp. References ACE_TRACE.
01501 { 01502 ACE_TRACE ("ACE_Token_Name::~ACE_Token_Name"); 01503 } |
|
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 } |
|
Set the token name.
|
|
Get the token name.
Referenced by ACE_Token_Name(). |
|
Copy.
|
|
Comparison.
|
|
Name of the token.
Definition at line 722 of file Local_Tokens.h. |