Main Page | Modules | Namespace List | Class Hierarchy | Class List | File List | Class Members | File Members | Related Pages

EmailString Class Reference

A string associated with an email field. More...

#include <email.h>

Inheritance diagram for EmailString:

EmailAddressBuf List of all members.

Public Member Functions

const char * add (const char *)
 Appends an email string.

const char * get_string ()
const char * set_string (const char *s)
 Assign a new string value to an EmailString object.

const char * set_string_ptr (char *s)
int length ()
const char * operator= (const char *buf)
const char * operator+= (const char *buf)
char & operator[] (int i)
 operator char * ()

Private Attributes

int theLength
char * theString

Friends

class EmailAddressBuf
int main ()

Detailed Description

A string associated with an email field.

Definition at line 63 of file email.h.


Member Function Documentation

const char * EmailString::add const char *  string  ) 
 

Appends an email string.

Parameters:
str Text to add
Precondition:
Str is a pointer to a valid NUL-terminated character array

Definition at line 86 of file email.cc.

Referenced by loadKlineQueue(), queueakill(), and timed_akill_queue().

const char * EmailString::get_string  )  [inline]
 

Returns:
The contents of an EmailString

Definition at line 79 of file email.h.

Referenced by saveKlineQueue(), EmailMessage::send(), and timed_akill_queue().

const char * EmailString::set_string const char *  str  ) 
 

Assign a new string value to an EmailString object.

Parameters:
str New string to set
Returns:
A pointer to the new value of the string
Precondition:
Str is a pointer to a valid NUL-terminated character array
Postcondition:
The string received has been copied into the present value which is located in a new memory area and pointed to by the object.

Definition at line 59 of file email.cc.

Referenced by timed_akill_queue().


The documentation for this class was generated from the following files:
Generated at Sat Oct 25 20:56:13 2003 for Services using Doxygen.
Services Copyr. 1996-2001 Chip Norkus, Max Byrd, Greg Poma, Michael Graff, James Hess, Dafydd James. All rights reserved See LICENSE for licensing information.