#include <tnt/multipart.h>
Public Types | |
| typedef std::string::const_iterator | const_iterator |
| typedef std::string::const_iterator | iterator |
| typedef std::string::size_type | size_type |
| typedef std::string::value_type | value_type |
| typedef std::string::pointer | pointer |
| typedef std::string::reference | reference |
|
typedef std::string::const_reference | const_reference |
|
typedef std::string::difference_type | difference_type |
Public Member Functions | |
| Part (const_iterator b, const_iterator e) | |
| const Partheader & | getHeader () const |
| returns the Partheader-object of this Part. | |
| std::string | getHeader (const std::string &key) const |
| returns a single header-value or empty string if not set. | |
| const std::string & | getType () const |
| returns the type of this Part | |
| std::string | getMimetype () const |
| returns the type of this Part | |
| const std::string & | getName () const |
| returns the name of this Part (name-attribute of html-input-field) | |
| const std::string & | getFilename () const |
| returns the passed filename of the Part or empty string. | |
| const_iterator | getBodyBegin () const |
| returns a const iterator to the start of data. | |
| const_iterator | getBodyEnd () const |
| returns a const iterator past the end of data. | |
| std::string | getBody () const |
| less efficient (a temporary string is created), but easier to use: | |
| bool | isEmpty () const |
| size_type | getSize () const |
| const_iterator | begin () const |
| const_iterator | end () const |
| size_type | size () const |
| bool | empty () const |