#include <Local_Tokens.h>
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_TCHAR * | name (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... | |
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.
|
|
Construction.
Definition at line 1400 of file Local_Tokens.cpp. References ACE_TCHAR, ACE_TRACE, and name.
|
|
|
Copy construction.
Definition at line 1406 of file Local_Tokens.cpp. References ACE_TRACE, and name.
|
|
|
Destructor.
Definition at line 1412 of file Local_Tokens.cpp. References ACE_TRACE.
01413 {
01414 ACE_TRACE ("ACE_Token_Name::~ACE_Token_Name");
01415 }
|
|
|
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 }
|
|
|
Set the token name.
|
|
|
Get the token name.
Referenced by ACE_Token_Name. |
|
|
Copy.
|
|
|
Comparison.
|
|
|
Name of the token.
Definition at line 717 of file Local_Tokens.h. Referenced by dump. |
1.2.14 written by Dimitri van Heesch,
© 1997-2002