NamedString Class Reference

A named string class. More...

#include <yateclass.h>

Inheritance diagram for NamedString:

String GenObject MimeHeaderLine NamedPointer MimeAuthLine

List of all members.

Public Member Functions

 NamedString (const char *name, const char *value=0)
const Stringname () const
virtual const StringtoString () const
virtual void * getObject (const String &name) const
NamedStringoperator= (const char *value)


Detailed Description

A named string class.

A string class with a hashed string name


Constructor & Destructor Documentation

NamedString ( const char *  name,
const char *  value = 0 
)

Creates a new named string.

Parameters:
name Name of this string
value Initial value of the string


Member Function Documentation

const String& name (  )  const [inline]

Retrive the name of this string.

Returns:
A hashed string with the name of the string

virtual const String& toString (  )  const [virtual]

Get a string representation of this object

Returns:
A reference to the name of this object

Reimplemented from String.

virtual void* getObject ( const String name  )  const [virtual]

Get a pointer to a derived class given that class name

Parameters:
name Name of the class we are asking for
Returns:
Pointer to the requested class or NULL if this object doesn't implement it

Reimplemented from String.

Reimplemented in NamedPointer, MimeHeaderLine, and MimeAuthLine.

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=().


The documentation for this class was generated from the following file:

Generated on Mon Aug 11 16:17:52 2008 for Yate by  doxygen 1.5.6