Odil
A C++11 library for the DICOM standard
|
STOW-RS request generator and parser. More...
#include <STOWRSRequest.h>
Public Member Functions | |
STOWRSRequest (URL const &base_url) | |
Constructor which takes an URL as argument. More... | |
STOWRSRequest (HTTPRequest const &request) | |
Constructor which takes an HTTPRequest as argument. More... | |
bool | operator== (STOWRSRequest const &other) const |
Equality operator. More... | |
bool | operator!= (STOWRSRequest const &other) const |
Difference operator. More... | |
~STOWRSRequest ()=default | |
Destructor. More... | |
const URL & | get_base_url () const |
Return base_url. More... | |
void | set_base_url (URL const &url) |
Set the base url. More... | |
const std::string & | get_transfer_syntax () const |
Return the transfer syntax. More... | |
void | set_transfer_syntax (std::string const &transfer_syntax) |
Set the transfer syntax. More... | |
const std::string & | get_media_type () const |
Return the media type. More... | |
const Representation & | get_representation () const |
Return the representation. More... | |
const URL & | get_url () const |
Return the url. More... | |
const Selector & | get_selector () const |
Return the selector. More... | |
const Value::DataSets & | get_data_sets () const |
Get the response items. More... | |
Value::DataSets & | get_data_sets () |
Modify the response items. More... | |
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. More... | |
HTTPRequest | get_http_request () const |
Generate the associated HTTP request. More... | |
STOW-RS request generator and parser.
odil::webservices::STOWRSRequest::STOWRSRequest | ( | URL const & | base_url | ) |
Constructor which takes an URL as argument.
odil::webservices::STOWRSRequest::STOWRSRequest | ( | HTTPRequest const & | request | ) |
Constructor which takes an HTTPRequest as argument.
|
default |
Destructor.
const URL& odil::webservices::STOWRSRequest::get_base_url | ( | ) | const |
Return base_url.
Value::DataSets& odil::webservices::STOWRSRequest::get_data_sets | ( | ) |
Modify the response items.
const Value::DataSets& odil::webservices::STOWRSRequest::get_data_sets | ( | ) | const |
Get the response items.
HTTPRequest odil::webservices::STOWRSRequest::get_http_request | ( | ) | const |
Generate the associated HTTP request.
const std::string& odil::webservices::STOWRSRequest::get_media_type | ( | ) | const |
Return the media type.
const Representation& odil::webservices::STOWRSRequest::get_representation | ( | ) | const |
Return the representation.
const Selector& odil::webservices::STOWRSRequest::get_selector | ( | ) | const |
Return the selector.
const std::string& odil::webservices::STOWRSRequest::get_transfer_syntax | ( | ) | const |
Return the transfer syntax.
const URL& odil::webservices::STOWRSRequest::get_url | ( | ) | const |
Return the url.
bool odil::webservices::STOWRSRequest::operator!= | ( | STOWRSRequest const & | other | ) | const |
Difference operator.
bool odil::webservices::STOWRSRequest::operator== | ( | STOWRSRequest const & | other | ) | const |
Equality operator.
void odil::webservices::STOWRSRequest::request_dicom | ( | Value::DataSets const & | data_sets, |
Selector const & | selector, | ||
Representation const & | representation, | ||
std::string const & | transfer_syntax = registry::ExplicitVRLittleEndian |
||
) |
Prepare a dicom request.
with a vector of datasets to store (each one will be used in a part of the request) A selector corresponding to the location where the instance will be stored and a representation corresponding to the way the request will be encoded
void odil::webservices::STOWRSRequest::set_base_url | ( | URL const & | url | ) |
Set the base url.
void odil::webservices::STOWRSRequest::set_transfer_syntax | ( | std::string const & | transfer_syntax | ) |
Set the transfer syntax.