mime::decoder Class Reference

#include <decode.h>

Inheritance diagram for mime::decoder:

mime::client_interface List of all members.

Public Member Functions

 decoder ()
void close ()
void decode (unsigned char c)
virtual void object_created (object *object)=0
virtual void data_start (object *obj)=0
virtual void data (object *obj, unsigned char *data, int len)=0
virtual void data_end (object *obj)=0

Detailed Description

A class which knows how to decode MIME. You get this class to do something useful by deriving your own class from it, and implementing all the calls in the client_interface interface.


Constructor & Destructor Documentation

mime::decoder::decoder  )  [inline]
 

Default constructor.


Member Function Documentation

void mime::decoder::close  )  [inline]
 

The data producer should call this once all data has been presented to the decoder to finalise processing and clean up all resources.

virtual void mime::client_interface::data object obj,
unsigned char *  data,
int  len
[pure virtual, inherited]
 

This method is used to deliver data parsed from the MIME object.

virtual void mime::client_interface::data_end object obj  )  [pure virtual, inherited]
 

This method is used to indicate that all data from the MIME object has been delivered.

virtual void mime::client_interface::data_start object obj  )  [pure virtual, inherited]
 

This method is caled when a MIME object's data starts processing.

void mime::decoder::decode unsigned char  c  ) 
 

The data produced should call this method to present data to the decoder.

virtual void mime::client_interface::object_created object object  )  [pure virtual, inherited]
 

This method is called when a MIME object has been discovered in the input data. Data may or may not follow.


The documentation for this class was generated from the following file:
Generated on Mon Jun 19 21:23:16 2006 for mimedecode by  doxygen 1.4.6