9#ifndef _91f4f1d4_f2ff_48a2_8918_ade8aa161233
10#define _91f4f1d4_f2ff_48a2_8918_ade8aa161233
93 std::string
const & media_type=
"application/octet-stream");
100 std::vector<BulkData> _bulk_data;
104 std::string _media_type;
std::vector< std::shared_ptr< DataSet > > DataSets
Data sets container.
Definition: Value.h:60
HTTP Response.
Definition: HTTPResponse.h:25
WADO-RS response generator and parser.
Definition: WADORSResponse.h:31
bool operator!=(WADORSResponse const &other) const
Difference operator.
void set_bulk_data(std::vector< BulkData > const &bulk_data)
Set the response items.
bool is_partial() const
Return whether the requested content is partially transferred.
std::vector< BulkData > const & get_bulk_data() const
Get the response items.
void respond_bulk_data()
Prepare a bulk data response.
WADORSResponse(WADORSResponse &&)=default
void set_partial(bool partial)
Set whether the requested content is partially transferred.
Value::DataSets & get_data_sets()
Modify the response items.
WADORSResponse(WADORSResponse const &)=default
std::vector< BulkData > & get_bulk_data()
Modify the response items.
Type get_type() const
Return the response type.
HTTPResponse get_http_response() const
Generate the associated HTTP response.
~WADORSResponse()=default
WADORSResponse(HTTPResponse const &response)
Parse an HTTPResponse as a WADORSResponse.
bool operator==(WADORSResponse const &other) const
Equality operator.
void respond_pixel_data(std::string const &media_type="application/octet-stream")
Prepare a pixel data response.
void respond_dicom(Representation representation)
Prepare a DICOM response.
WADORSResponse()
Constructor.
Representation const & get_representation() const
Return the representation.
Value::DataSets const & get_data_sets() const
Get the response items.
WADORSResponse & operator=(WADORSResponse &&)=default
void set_data_sets(Value::DataSets const &data_sets)
Set the response items.
Representation
Data representation for DICOM requests and responses.
Definition: Utils.h:36
Type
Type of the request or response (use for WADO & QIDO).
Definition: Utils.h:27
Definition: Association.h:25
#define ODIL_API
Definition: odil.h:28