|
VMime
|
#include <fileContentHandler.hpp>


Additional Inherited Members | |
Static Public Attributes inherited from contentHandler | |
| static const vmime::encoding | NO_ENCODING |
Protected Member Functions inherited from object | |
| object () | |
| object (const object &) | |
| object & | operator= (const object &) |
| virtual | ~object () |
A content handler which obtains its data from a file.
Creates a new empty content handler.
No data can be extracted until a file is attached using setData() function.
| fileContentHandler | ( | shared_ptr< utility::file > | file, |
| const vmime::encoding & | enc = NO_ENCODING |
||
| ) |
Creates a new content handler using a file.
| file | file from which data will be obtained |
| enc | set to anything other than NO_ENCODING if the data contained in the file is already encoded with the specified encoding |
References vmime::dynamicCast(), and fileContentHandler::setData().
| ~fileContentHandler | ( | ) |
| fileContentHandler | ( | const fileContentHandler & | cts | ) |
References vmime::dynamicCast(), and fileContentHandler::setData().
|
virtual |
Return a copy of this object.
Implements contentHandler.
References vmime::dynamicCast().
| fileContentHandler & operator= | ( | const fileContentHandler & | cts | ) |
References vmime::dynamicCast(), and fileContentHandler::setData().
| void setData | ( | shared_ptr< utility::file > | file, |
| const vmime::encoding & | enc = NO_ENCODING |
||
| ) |
Sets the data managed by this content handler.
| file | file from which data will be obtained |
| enc | set to anything other than NO_ENCODING if the data contained in the file is already encoded with the specified encoding |
References vmime::dynamicCast(), and streamContentHandler::setData().
Referenced by fileContentHandler::fileContentHandler(), fileContentHandler::fileContentHandler(), and fileContentHandler::operator=().