Odil
A C++11 library for the DICOM standard
Namespaces | Functions
multipart_related.h File Reference
#include <ostream>
#include <string>
#include "odil/webservices/Message.h"
#include "multipart_related.txx"
Include dependency graph for multipart_related.h:

Go to the source code of this file.

Namespaces

 odil
 
 odil::webservices
 

Functions

bool odil::webservices::is_multipart_related (Message const &message)
 Test whether the message is multipart/related. More...
 
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. More...
 
std::string odil::webservices::random_boundary ()
 Return a random multipart/related boundary. More...
 
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. More...
 
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. More...
 
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. More...