9 #ifndef _9d8fe506_1ea6_448c_8c6c_bcd7375e89de 10 #define _9d8fe506_1ea6_448c_8c6c_bcd7375e89de 36 template<
typename Iterator,
typename UnaryFunctor>
38 Message
const & message, Iterator destination, UnaryFunctor functor);
42 template<
typename UnaryFunctor>
44 Message
const & message, UnaryFunctor functor);
51 template<
typename Iterator,
typename UnaryFunction>
53 Iterator begin, Iterator end, UnaryFunction serialize, std::ostream & stream,
54 std::string
const & boundary);
60 #include "multipart_related.txx" 62 #endif // _9d8fe506_1ea6_448c_8c6c_bcd7375e89de
std::size_t count_parts(Message const &message)
Return the number of parts in the message, 0 if the message is not multipart/related.
std::ostream & accumulate_parts(Iterator begin, Iterator end, UnaryFunction serialize, std::ostream &stream, std::string const &boundary)
Serialize the (begin, end) sequence as a multipart/related message body in stream as described in the...
Definition: Association.h:24
std::string random_boundary()
Return a random multipart/related boundary.
#define ODIL_API
Definition: odil.h:28
bool is_multipart_related(Message const &message)
Test whether the message is multipart/related.
void transform_parts(Message const &message, Iterator destination, UnaryFunctor functor)
Transform each part of a multipart/related message.
void for_each_part(Message const &message, UnaryFunctor functor)
Use to call a functor for each part of a multipart/related message.