Odil
A C++11 library for the DICOM standard
|
#include <ostream>
#include <string>
#include "odil/webservices/Message.h"
#include "multipart_related.txx"
Go to the source code of this file.
Namespaces | |
namespace | odil |
namespace | odil::webservices |
Functions | |
bool | odil::webservices::is_multipart_related (Message const &message) |
Test whether the message is multipart/related. | |
std::size_t | odil::webservices::count_parts (Message const &message) |
Return the number of parts in the message, 0 if the message is not multipart/related. | |
std::string | odil::webservices::random_boundary () |
Return a random multipart/related boundary. | |
template<typename Iterator , typename UnaryFunctor > | |
void | odil::webservices::transform_parts (Message const &message, Iterator destination, UnaryFunctor functor) |
Transform each part of a multipart/related message. | |
template<typename UnaryFunctor > | |
void | odil::webservices::for_each_part (Message const &message, UnaryFunctor functor) |
Use to call a functor for each part of a multipart/related message. | |
template<typename Iterator , typename UnaryFunction > | |
std::ostream & | odil::webservices::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 RFC 2046 https://tools.ietf.org/html/rfc2046#section-5.1.1. | |