Odil
A C++11 library for the DICOM standard
|
Go to the documentation of this file.
9 #ifndef _32b5f072_8ebb_4df1_925d_abd5f0535eb6
10 #define _32b5f072_8ebb_4df1_925d_abd5f0535eb6
33 URL const & base_url, std::string
const & transfer_syntax=
"",
34 std::string
const & character_set=
"",
35 bool include_media_type_in_query=
false,
36 bool include_character_set_in_query=
false);
105 std::string
const & media_type=
"application/octet-stream");
112 std::string _transfer_syntax;
113 std::string _character_set;
114 bool _include_media_type_in_query;
115 bool _include_character_set_in_query;
119 std::string _media_type;
124 static bool _is_selector_valid(
Selector const & selector);
131 #endif // _32b5f072_8ebb_4df1_925d_abd5f0535eb6
WADO-RS request generator and parser.
Definition: WADORSRequest.h:29
HTTP request.
Definition: HTTPRequest.h:26
bool get_include_media_type_in_query() const
Return whether to include the media type in the URL query.
std::string const & get_transfer_syntax() const
Return the transfer syntax.
WADORSRequest(URL const &base_url, std::string const &transfer_syntax="", std::string const &character_set="", bool include_media_type_in_query=false, bool include_character_set_in_query=false)
Constructor.
Definition: Association.h:25
void set_include_character_set_in_query(bool include_charcter_set_in_query)
Set whether to include the character_set in the URL query.
void set_base_url(URL const &url)
Set the base URL; the query and fragment must be empty.
#define ODIL_API
Definition: odil.h:28
void set_character_set(std::string const &character_set)
Set the transfer syntax.
URL const & get_url() const
Return the URL.
std::string const & get_character_set() const
Return the transfer syntax.
void request_dicom(Representation representation, Selector const &selector)
Prepare a DICOM request.
Uniform resource locator.
Definition: URL.h:26
WADORSRequest(HTTPRequest const &request)
Constructor.
void request_pixel_data(Selector const &selector, std::string const &media_type="application/octet-stream")
Prepare a pixel data request.
Target (in the DICOM data model) of the request.
Definition: Selector.h:27
Type
Type of the request or response (use for WADO & QIDO).
Definition: Utils.h:27
void request_bulk_data(Selector const &selector)
Prepare a bulk data request.
std::string const & get_media_type() const
Return the media type.
bool operator==(WADORSRequest const &other) const
Equality operator.
void set_transfer_syntax(std::string const &transfer_syntax)
Set the transfer syntax.
void set_include_media_type_in_query(bool include_media_type_in_query)
Set whether to include the media type in the URL query.
Selector const & get_selector() const
Return the selector.
Type get_type() const
Return the query type.
bool get_include_character_set_in_query() const
Return whether to include the character set in the URL query.
void request_bulk_data(URL const &url)
Prepare a bulk data request.
HTTPRequest get_http_request() const
Generate the associated HTTP request.
bool operator!=(WADORSRequest const &other) const
Difference operator.
Representation
Data representation for DICOM requests and responses.
Definition: Utils.h:36
Representation const & get_representation() const
Return the representation.
URL const & get_base_url() const
Return the base URL.