/* -*- C++ -*- */ // $Id$ // Local_Tokens_T.i template ACE_INLINE void ACE_Token_Name::operator= (const ACE_Token_Name &rhs) { ACE_TRACE ("ACE_Token_Name::operator="); if (&rhs == this) return; else { this->type (rhs.type ()); this->name (rhs.name ()); } } template ACE_INLINE int ACE_Token_Name::operator== (const ACE_Token_Name &rhs) const { ACE_TRACE ("ACE_Token_Name::operator=="); // the name and type must be the same return (ACE_OS::strcmp (this->token_name_, rhs.name ()) == 0 && rhs.type () == type_); } template ACE_INLINE const char* ACE_Token_Name::name (void) const { ACE_TRACE ("ACE_Token_Name::name"); return this->token_name_; } template ACE_INLINE void ACE_Token_Name::name (const char *new_name) { ACE_TRACE ("ACE_Token_Name::name"); if (new_name == 0) return; int n = ACE_OS::strlen (new_name) + 1; if (n > ACE_MAXTOKENNAMELEN) n = ACE_MAXTOKENNAMELEN; ACE_OS::strncpy (this->token_name_, (char *) new_name, n); } template ACE_INLINE TYPE ACE_Token_Name::type (void) const { ACE_TRACE ("ACE_Token_Name::type"); return this->type_; } template ACE_INLINE void ACE_Token_Name::type (TYPE type) { ACE_TRACE ("ACE_Token_Name::type"); this->type_ = type; }