Yate
Public Member Functions

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:
nameName of this string
valueInitial value of the string

Member Function Documentation

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

Get a pointer to a derived class given that class name

Parameters:
nameName 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.

const String& name ( ) const [inline]

Retrive the name of this string.

Returns:
A hashed string with the name of the 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

Returns:
A reference to the name of this object

Reimplemented from String.


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