9#ifndef _920fb954_a579_47a3_8288_21ea1a01f81d
10#define _920fb954_a579_47a3_8288_21ea1a01f81d
14#include <boost/uuid/random_generator.hpp>
15#include <boost/uuid/uuid.hpp>
91 std::string
const & transfer_syntax=registry::ExplicitVRLittleEndian);
98 typedef std::map<std::string, Value::Binary::value_type> BulkMap;
101 std::string _transfer_syntax;
104 std::string _media_type;
110 static bool _is_selector_valid (
Selector const & selector);
113 static std::string _media_type_from_transfer_syntax(
114 std::string
const & transfer_syntax);
117 static void _extract_bulk_data(
118 std::shared_ptr<DataSet> data_set, std::vector<BulkData> & bulk_data);
124 static void _restore_data_set(
125 std::shared_ptr<DataSet> data_set, BulkMap & bulk_map);
std::vector< std::shared_ptr< DataSet > > DataSets
Data sets container.
Definition Value.h:60
HTTP request.
Definition HTTPRequest.h:26
STOW-RS request generator and parser.
Definition STOWRSRequest.h:33
~STOWRSRequest()=default
Destructor.
bool operator==(STOWRSRequest const &other) const
Equality operator.
URL const & get_base_url() const
Return base_url.
URL const & get_url() const
Return the url.
HTTPRequest get_http_request() const
Generate the associated HTTP request.
bool operator!=(STOWRSRequest const &other) const
Difference operator.
Value::DataSets const & get_data_sets() const
Get the response items.
void request_dicom(Value::DataSets const &data_sets, Selector const &selector, Representation const &representation, std::string const &transfer_syntax=registry::ExplicitVRLittleEndian)
Prepare a dicom request.
Value::DataSets & get_data_sets()
Modify the response items.
std::string const & get_media_type() const
Return the media type.
Selector const & get_selector() const
Return the selector.
void set_transfer_syntax(std::string const &transfer_syntax)
Set the transfer syntax.
STOWRSRequest(URL const &base_url)
Constructor which takes an URL as argument.
Representation const & get_representation() const
Return the representation.
std::string const & get_transfer_syntax() const
Return the transfer syntax.
void set_base_url(URL const &url)
Set the base url.
STOWRSRequest(HTTPRequest const &request)
Constructor which takes an HTTPRequest as argument.
Target (in the DICOM data model) of the request.
Definition Selector.h:27
Representation
Data representation for DICOM requests and responses.
Definition Utils.h:36
Definition Association.h:25
#define ODIL_API
Definition odil.h:28
Uniform resource locator.
Definition URL.h:26