Main Page   Class Hierarchy   Alphabetical List   Compound List   Examples  
Public Member Functions | Protected Member Functions | Protected Attributes | Friends | List of all members
MimeEntity Class Reference

Represent a MIME entity
More...

#include <mimeentity.h>

Inheritance diagram for MimeEntity:
ApplicationOctStream Attachment MessageRfc822 MultipartEntity TextEntity AudioBasic ImageJpeg MultipartAlternative MultipartDigest MultipartMixed MultipartParallel TextEnriched TextPlain

Public Member Functions

 MimeEntity ()
 
template<typename Iterator >
 MimeEntity (Iterator beg, Iterator end, int mask=imNone)
 
 MimeEntity (std::istream &)
 
template<typename OutputIt >
size_type copy (OutputIt out)
 
Headerheader ()
 
const Headerheader () const
 
Bodybody ()
 
const Bodybody () const
 
template<typename Iterator >
void load (Iterator, Iterator, int mask=imNone)
 
void load (std::istream &, int mask=imNone)
 
bool hasField (const std::string &) const
 
size_type size () const
 

Protected Member Functions

void commonInit ()
 
virtual std::ostream & write (std::ostream &, const char *eol=0) const
 

Protected Attributes

Header m_header
 
Body m_body
 
size_type m_lines
 
size_type m_size
 

Friends

class Body
 
class MimeEntityLoader
 
std::ostream & operator<< (std::ostream &, const MimeEntity &)
 

Detailed Description

Represent a MIME entity

Constructor & Destructor Documentation

◆ MimeEntity() [1/3]

Blank MIME entity

◆ MimeEntity() [2/3]

MimeEntity ( Iterator  beg,
Iterator  end,
int  mask = imNone 
)

Parse [beg, end] and build entity based on content

◆ MimeEntity() [3/3]

MimeEntity ( std::istream &  )

Parse istream and build entity based on content

Member Function Documentation

◆ copy()

MimeEntity::size_type copy ( OutputIt  out)

copy text rapresentation of the MimeEntity to the output iterator

◆ hasField()

bool hasField ( const std::string &  ) const

helper functions: return header().hasField(str)

◆ load()

void load ( Iterator  bit,
Iterator  eit,
int  mask = imNone 
)

single step load functions: parse the input provided and build the entity

use load(..., mask) to ignore some part of the message when it's not needed saving memory space and execution time

◆ size()

size_type size ( ) const

returns entity size Note: this function is slow, use it if you really need


The documentation for this class was generated from the following file: