Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

CL_MimePart Class Reference

#include <mime_part.h>

List of all members.

Public Member Functions

 CL_MimePart ()
 Construction:.
 CL_MimePart (const CL_MimePart &copy)
CL_MimePartoperator= (const CL_MimePart &copy)
 Operations:.
void load (CL_File &file, const CL_StringA &next_mime_boundary=CL_StringA())
CL_StringA get_content_id () const
bool has_content_id () const
CL_StringA get_content_description () const
bool has_content_description () const
CL_StringA get_content_disposition () const
bool has_content_disposition () const
CL_StringA get_content_transfer_encoding () const
CL_StringA get_content_type () const
bool has_content_type () const
CL_StringA get_content_type_parameters () const
CL_StringA get_content_type_parameter_value (const CL_StringA &name) const
bool has_content_type_parameter (const CL_StringA &name) const
int get_header_lines_count () const
CL_StringA get_header_line (int line) const

Public Attributes

CL_StringA headers
 Attributes:.
int header_pos
int header_length
int body_pos
int body_length
std::vector< CL_MimePartparts


Constructor & Destructor Documentation

CL_MimePart::CL_MimePart  ) 
 

Construction:.

Definition at line 39 of file mime_part.cpp.

CL_MimePart::CL_MimePart const CL_MimePart copy  ) 
 

Definition at line 44 of file mime_part.cpp.


Member Function Documentation

CL_StringA CL_MimePart::get_content_description  )  const
 

Definition at line 269 of file mime_part.cpp.

References CL_RegExpMatch::get_capture_length(), CL_RegExpMatch::get_capture_pos(), headers, CL_RegExpMatch::is_match(), and CL_RegExp::search().

CL_StringA CL_MimePart::get_content_disposition  )  const
 

CL_StringA CL_MimePart::get_content_id  )  const
 

Definition at line 248 of file mime_part.cpp.

References CL_RegExpMatch::get_capture_length(), CL_RegExpMatch::get_capture_pos(), headers, CL_RegExpMatch::is_match(), and CL_RegExp::search().

CL_StringA CL_MimePart::get_content_transfer_encoding  )  const
 

Definition at line 290 of file mime_part.cpp.

References CL_RegExpMatch::get_capture_length(), CL_RegExpMatch::get_capture_pos(), headers, CL_RegExpMatch::is_match(), and CL_RegExp::search().

CL_StringA CL_MimePart::get_content_type  )  const
 

Definition at line 304 of file mime_part.cpp.

References CL_RegExpMatch::get_capture_length(), CL_RegExpMatch::get_capture_pos(), headers, CL_RegExpMatch::is_match(), and CL_RegExp::search().

Referenced by load().

CL_StringA CL_MimePart::get_content_type_parameter_value const CL_StringA name  )  const
 

Definition at line 342 of file mime_part.cpp.

References CL_RegExpMatch::get_capture_length(), CL_RegExpMatch::get_capture_pos(), get_content_type_parameters(), has_content_type(), CL_RegExpMatch::is_match(), and CL_RegExp::search().

Referenced by load().

CL_StringA CL_MimePart::get_content_type_parameters  )  const
 

Definition at line 327 of file mime_part.cpp.

References CL_RegExpMatch::get_capture_length(), CL_RegExpMatch::get_capture_pos(), headers, CL_RegExpMatch::is_match(), and CL_RegExp::search().

Referenced by get_content_type_parameter_value(), and has_content_type_parameter().

CL_StringA CL_MimePart::get_header_line int  line  )  const
 

Definition at line 418 of file mime_part.cpp.

References CL_RegExpMatch::get_capture_length(), CL_RegExpMatch::get_capture_pos(), headers, CL_RegExpMatch::is_match(), and CL_RegExp::search().

int CL_MimePart::get_header_lines_count  )  const
 

Definition at line 402 of file mime_part.cpp.

References CL_RegExpMatch::get_capture_length(), CL_RegExpMatch::get_capture_pos(), headers, CL_RegExpMatch::is_match(), and CL_RegExp::search().

bool CL_MimePart::has_content_description  )  const
 

Definition at line 283 of file mime_part.cpp.

References headers, CL_RegExpMatch::is_match(), and CL_RegExp::search().

bool CL_MimePart::has_content_disposition  )  const
 

bool CL_MimePart::has_content_id  )  const
 

Definition at line 262 of file mime_part.cpp.

References headers, CL_RegExpMatch::is_match(), and CL_RegExp::search().

bool CL_MimePart::has_content_type  )  const
 

Definition at line 318 of file mime_part.cpp.

References headers, CL_RegExpMatch::is_match(), and CL_RegExp::search().

Referenced by get_content_type_parameter_value(), and has_content_type_parameter().

bool CL_MimePart::has_content_type_parameter const CL_StringA name  )  const
 

Definition at line 373 of file mime_part.cpp.

References CL_RegExpMatch::get_capture_length(), CL_RegExpMatch::get_capture_pos(), get_content_type_parameters(), has_content_type(), CL_RegExpMatch::is_match(), and CL_RegExp::search().

void CL_MimePart::load CL_File file,
const CL_StringA next_mime_boundary = CL_StringA()
 

Definition at line 67 of file mime_part.cpp.

References body_length, body_pos, CL_RegExpMatch::get_capture_length(), CL_RegExpMatch::get_capture_pos(), get_content_type(), get_content_type_parameter_value(), header_length, header_pos, headers, CL_RegExpMatch::is_match(), CL_RegExpMatch::is_partial(), parts, CL_RegExp::search(), and TEXT.

Referenced by CL_MimeDocument::load().

CL_MimePart & CL_MimePart::operator= const CL_MimePart copy  ) 
 

Operations:.

Definition at line 56 of file mime_part.cpp.

References body_length, body_pos, header_length, header_pos, headers, and parts.


Member Data Documentation

int CL_MimePart::body_length
 

Definition at line 50 of file mime_part.h.

Referenced by load(), and operator=().

int CL_MimePart::body_pos
 

Definition at line 50 of file mime_part.h.

Referenced by load(), and operator=().

int CL_MimePart::header_length
 

Definition at line 48 of file mime_part.h.

Referenced by load(), and operator=().

int CL_MimePart::header_pos
 

Definition at line 48 of file mime_part.h.

Referenced by load(), and operator=().

CL_StringA CL_MimePart::headers
 

Attributes:.

Definition at line 46 of file mime_part.h.

Referenced by get_content_description(), get_content_id(), get_content_transfer_encoding(), get_content_type(), get_content_type_parameters(), get_header_line(), get_header_lines_count(), has_content_description(), has_content_id(), has_content_type(), load(), and operator=().

std::vector<CL_MimePart> CL_MimePart::parts
 

Definition at line 52 of file mime_part.h.

Referenced by load(), and operator=().


The documentation for this class was generated from the following files:
Generated on Sat Feb 19 22:51:17 2005 for npcore by  doxygen 1.4.1