Odil
A C++11 library for the DICOM standard
|
STOW-RS request generator and parser. More...
#include <STOWRSResponse.h>
Public Member Functions | |
STOWRSResponse () | |
Constructor. More... | |
STOWRSResponse (HTTPResponse const &response) | |
Parse an HTTPResponse as a STOWRSResponse. More... | |
STOWRSResponse (STOWRSResponse const &)=default | |
STOWRSResponse (STOWRSResponse &&)=default | |
STOWRSResponse & | operator= (STOWRSResponse const &)=default |
STOWRSResponse & | operator= (STOWRSResponse &&)=default |
~STOWRSResponse ()=default | |
bool | operator== (STOWRSResponse const &other) const |
Equality operator. More... | |
bool | operator!= (STOWRSResponse const &other) const |
Difference operator. More... | |
void | set_store_instance_responses (std::shared_ptr< DataSet > responses) |
Set store instance responses. More... | |
std::shared_ptr< DataSet const > | get_store_instance_responses () const |
Get store instance responses. More... | |
std::string const & | get_media_type () const |
Get the media type. More... | |
void | set_representation (Representation const &representation) |
Set the representation. More... | |
Representation const & | get_representation () const |
Get the representation. More... | |
void | set_warning (bool warn) |
Set whether there is a warning in the response or not. More... | |
bool | is_status_warning () const |
Return whether there is a warning in the response or not. More... | |
void | set_failure_code (unsigned int failure_code) |
Set the failure code. More... | |
unsigned int | get_failure_code () const |
Return the failure code. More... | |
void | set_reason (std::string reason) |
Set the reason. More... | |
std::string const & | get_reason () const |
Get the reason. More... | |
HTTPResponse | get_http_response () const |
Generate the associated HTTP Response. More... | |
STOW-RS request generator and parser.
odil::webservices::STOWRSResponse::STOWRSResponse | ( | ) |
Constructor.
odil::webservices::STOWRSResponse::STOWRSResponse | ( | HTTPResponse const & | response | ) |
Parse an HTTPResponse as a STOWRSResponse.
|
default |
|
default |
|
default |
unsigned int odil::webservices::STOWRSResponse::get_failure_code | ( | ) | const |
Return the failure code.
HTTPResponse odil::webservices::STOWRSResponse::get_http_response | ( | ) | const |
Generate the associated HTTP Response.
std::string const & odil::webservices::STOWRSResponse::get_media_type | ( | ) | const |
Get the media type.
std::string const & odil::webservices::STOWRSResponse::get_reason | ( | ) | const |
Get the reason.
Representation const & odil::webservices::STOWRSResponse::get_representation | ( | ) | const |
Get the representation.
std::shared_ptr< DataSet const > odil::webservices::STOWRSResponse::get_store_instance_responses | ( | ) | const |
Get store instance responses.
bool odil::webservices::STOWRSResponse::is_status_warning | ( | ) | const |
Return whether there is a warning in the response or not.
bool odil::webservices::STOWRSResponse::operator!= | ( | STOWRSResponse const & | other | ) | const |
Difference operator.
|
default |
|
default |
bool odil::webservices::STOWRSResponse::operator== | ( | STOWRSResponse const & | other | ) | const |
Equality operator.
void odil::webservices::STOWRSResponse::set_failure_code | ( | unsigned int | failure_code | ) |
Set the failure code.
void odil::webservices::STOWRSResponse::set_reason | ( | std::string | reason | ) |
Set the reason.
void odil::webservices::STOWRSResponse::set_representation | ( | Representation const & | representation | ) |
Set the representation.
void odil::webservices::STOWRSResponse::set_store_instance_responses | ( | std::shared_ptr< DataSet > | responses | ) |
Set store instance responses.
void odil::webservices::STOWRSResponse::set_warning | ( | bool | warn | ) |
Set whether there is a warning in the response or not.