A named string class. More...
#include <yateclass.h>
Public Member Functions | |
| NamedString (const char *name, const char *value=0) | |
| const String & | name () const |
| virtual const String & | toString () const |
| virtual void * | getObject (const String &name) const |
| NamedString & | operator= (const char *value) |
A named string class.
A string class with a hashed string name
| NamedString | ( | const char * | name, | |
| const char * | value = 0 | |||
| ) |
Creates a new named string.
| name | Name of this string | |
| value | Initial value of the string |
| virtual void* getObject | ( | const String & | name | ) | const [virtual] |
Get a pointer to a derived class given that class name
| name | Name of the class we are asking for |
Reimplemented from String.
Reimplemented in NamedPointer, MimeHeaderLine, and MimeAuthLine.
| const String& name | ( | ) | const [inline] |
Retrive the name of this string.
| NamedString& operator= | ( | const char * | value | ) | [inline] |
Value assignment operator
Reimplemented from String.
Reimplemented in NamedPointer, and MimeHeaderLine.
References String::operator=().
Referenced by MimeHeaderLine::operator=(), and NamedPointer::operator=().
| virtual const String& toString | ( | ) | const [virtual] |
Get a string representation of this object
Reimplemented from String.
1.6.3