LLMimeParser Class Reference

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

#include <llmime.h>

Collaboration diagram for LLMimeParser:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 LLMimeParser ()
 ~LLMimeParser ()
void reset ()
bool parseIndex (std::istream &istr, 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, S32 limit, LLMimeIndex &index)
 Parse a stream to find the mime index information.
bool parseIndex (const U8 *buffer, S32 buffer_length, LLMimeIndex &index)
 Parse a memory bufffer to find the mime index information.

Protected Attributes

ImplmImpl

Private Member Functions

 LLMimeParser (const LLMimeParser &parser)
LLMimeParseroperator= (const LLMimeParser &mime)

Classes

class  Impl
 Implementation details of the mime parser class. More...

Detailed Description

This class implements a MIME parser and verifier.

THOROUGH_DESCRIPTION

Definition at line 207 of file llmime.h.


Constructor & Destructor Documentation

LLMimeParser::LLMimeParser (  ) 

Definition at line 582 of file llmime.cpp.

LLMimeParser::~LLMimeParser (  ) 

Definition at line 586 of file llmime.cpp.

References mImpl.

LLMimeParser::LLMimeParser ( const LLMimeParser parser  )  [private]


Member Function Documentation

LLMimeParser& LLMimeParser::operator= ( const LLMimeParser mime  )  [private]

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.

Definition at line 619 of file llmime.cpp.

References parseIndex().

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.

Definition at line 610 of file llmime.cpp.

References mImpl, and LLMimeParser::Impl::parseIndex().

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.

Definition at line 602 of file llmime.cpp.

References parseIndex().

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.

Definition at line 596 of file llmime.cpp.

References mImpl, LLMimeParser::Impl::parseIndex(), and S32_MAX.

Referenced by parseIndex().

void LLMimeParser::reset (  ) 

Definition at line 591 of file llmime.cpp.

References mImpl, and LLMimeParser::Impl::reset().


Member Data Documentation

Impl& LLMimeParser::mImpl [protected]

Definition at line 286 of file llmime.h.

Referenced by parseIndex(), reset(), and ~LLMimeParser().


The documentation for this class was generated from the following files:
Generated on Thu Jul 1 06:11:31 2010 for Second Life Viewer by  doxygen 1.4.7