Made to Order Software Corporation Logo

LLChatLib: LLMimeParser Class Reference

LLMimeParser Class Reference

This class implements a MIME parser and verifier. More...

#include <llmime.h>

List of all members.

Public Member Functions

bool parseIndex (const U8 *buffer, S32 buffer_length, LLMimeIndex &index)
 Parse a memory bufffer to find the mime index information.

bool parseIndex (std::istream &istr, S32 limit, LLMimeIndex &index)
 Parse a stream to find the mime index information.

bool parseIndex (const std::vector< U8 > &buffer, LLMimeIndex &index)
 Parse a vector to find the mime index information.

bool parseIndex (std::istream &istr, LLMimeIndex &index)
 Parse a stream to find the mime index information.


Detailed Description

This class implements a MIME parser and verifier.

THOROUGH_DESCRIPTION


Member Function Documentation

bool LLMimeParser::parseIndex ( const U8 *  buffer,
S32  buffer_length,
LLMimeIndex index 
)

Parse a memory bufffer to find the mime index information.

Parameters:
buffer The start of the buffer to parse.
buffer_length The length of the buffer.
index[out] The parsed output.
Returns:
Returns true if an index was parsed and no errors occurred.

Here is the call graph for this function:

bool LLMimeParser::parseIndex ( std::istream &  istr,
S32  limit,
LLMimeIndex index 
)

Parse a stream to find the mime index information.

This method will scan the istr until a single complete mime entity is read, an EOF, or limit bytes have been scanned. The istr will be modified by this parsing, so pass in a temporary stream or rewind/reset the stream after this call.

Parameters:
istr An istream which contains a mime entity.
limit The maximum number of bytes to scan.
index[out] The parsed output.
Returns:
Returns true if an index was parsed and no errors occurred.
bool LLMimeParser::parseIndex ( const std::vector< U8 > &  buffer,
LLMimeIndex index 
)

Parse a vector to find the mime index information.

Parameters:
buffer A vector with data to parse.
index[out] The parsed output.
Returns:
Returns true if an index was parsed and no errors occurred.

Here is the call graph for this function:

bool LLMimeParser::parseIndex ( std::istream &  istr,
LLMimeIndex index 
)

Parse a stream to find the mime index information.

This method will scan the istr until a single complete mime entity is read or EOF. The istr will be modified by this parsing, so pass in a temporary stream or rewind/reset the stream after this call.

Parameters:
istr An istream which contains a mime entity.
index[out] The parsed output.
Returns:
Returns true if an index was parsed and no errors occurred.

The documentation for this class was generated from the following files:
  • /home/doug/src/oss/slitechat/trunk/LLChatLib/llmessage/llmime.h
  • /home/doug/src/oss/slitechat/trunk/LLChatLib/llmessage/llmime.cpp
Generated on Thu Sep 23 17:18:42 2010 for LLChatLib by  doxygen 1.6.3