Odil
A C++11 library for the DICOM standard
Public Member Functions | List of all members
odil::webservices::STOWRSResponse Class Reference

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
 
STOWRSResponseoperator= (STOWRSResponse const &)=default
 
STOWRSResponseoperator= (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...
 

Detailed Description

STOW-RS request generator and parser.

Constructor & Destructor Documentation

◆ STOWRSResponse() [1/4]

odil::webservices::STOWRSResponse::STOWRSResponse ( )

Constructor.

◆ STOWRSResponse() [2/4]

odil::webservices::STOWRSResponse::STOWRSResponse ( HTTPResponse const &  response)

Parse an HTTPResponse as a STOWRSResponse.

◆ STOWRSResponse() [3/4]

odil::webservices::STOWRSResponse::STOWRSResponse ( STOWRSResponse const &  )
default

◆ STOWRSResponse() [4/4]

odil::webservices::STOWRSResponse::STOWRSResponse ( STOWRSResponse &&  )
default

◆ ~STOWRSResponse()

odil::webservices::STOWRSResponse::~STOWRSResponse ( )
default

Member Function Documentation

◆ get_failure_code()

unsigned int odil::webservices::STOWRSResponse::get_failure_code ( ) const

Return the failure code.

◆ get_http_response()

HTTPResponse odil::webservices::STOWRSResponse::get_http_response ( ) const

Generate the associated HTTP Response.

◆ get_media_type()

std::string const& odil::webservices::STOWRSResponse::get_media_type ( ) const

Get the media type.

◆ get_reason()

std::string const& odil::webservices::STOWRSResponse::get_reason ( ) const

Get the reason.

◆ get_representation()

Representation const& odil::webservices::STOWRSResponse::get_representation ( ) const

Get the representation.

◆ get_store_instance_responses()

std::shared_ptr<DataSet const> odil::webservices::STOWRSResponse::get_store_instance_responses ( ) const

Get store instance responses.

◆ is_status_warning()

bool odil::webservices::STOWRSResponse::is_status_warning ( ) const

Return whether there is a warning in the response or not.

◆ operator!=()

bool odil::webservices::STOWRSResponse::operator!= ( STOWRSResponse const &  other) const

Difference operator.

◆ operator=() [1/2]

STOWRSResponse& odil::webservices::STOWRSResponse::operator= ( STOWRSResponse &&  )
default

◆ operator=() [2/2]

STOWRSResponse& odil::webservices::STOWRSResponse::operator= ( STOWRSResponse const &  )
default

◆ operator==()

bool odil::webservices::STOWRSResponse::operator== ( STOWRSResponse const &  other) const

Equality operator.

◆ set_failure_code()

void odil::webservices::STOWRSResponse::set_failure_code ( unsigned int  failure_code)

Set the failure code.

◆ set_reason()

void odil::webservices::STOWRSResponse::set_reason ( std::string  reason)

Set the reason.

◆ set_representation()

void odil::webservices::STOWRSResponse::set_representation ( Representation const &  representation)

Set the representation.

◆ set_store_instance_responses()

void odil::webservices::STOWRSResponse::set_store_instance_responses ( std::shared_ptr< DataSet responses)

Set store instance responses.

◆ set_warning()

void odil::webservices::STOWRSResponse::set_warning ( bool  warn)

Set whether there is a warning in the response or not.


The documentation for this class was generated from the following file: