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

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 URLget_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 Representationget_representation () const
 Return the representation. More...
 
const URLget_url () const
 Return the url. More...
 
const Selectorget_selector () const
 Return the selector. More...
 
const Value::DataSetsget_data_sets () const
 Get the response items. More...
 
Value::DataSetsget_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...
 

Detailed Description

STOW-RS request generator and parser.

Constructor & Destructor Documentation

◆ STOWRSRequest() [1/2]

odil::webservices::STOWRSRequest::STOWRSRequest ( URL const &  base_url)

Constructor which takes an URL as argument.

◆ STOWRSRequest() [2/2]

odil::webservices::STOWRSRequest::STOWRSRequest ( HTTPRequest const &  request)

Constructor which takes an HTTPRequest as argument.

◆ ~STOWRSRequest()

odil::webservices::STOWRSRequest::~STOWRSRequest ( )
default

Destructor.

Member Function Documentation

◆ get_base_url()

const URL& odil::webservices::STOWRSRequest::get_base_url ( ) const

Return base_url.

◆ get_data_sets() [1/2]

Value::DataSets& odil::webservices::STOWRSRequest::get_data_sets ( )

Modify the response items.

◆ get_data_sets() [2/2]

const Value::DataSets& odil::webservices::STOWRSRequest::get_data_sets ( ) const

Get the response items.

◆ get_http_request()

HTTPRequest odil::webservices::STOWRSRequest::get_http_request ( ) const

Generate the associated HTTP request.

◆ get_media_type()

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

Return the media type.

◆ get_representation()

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

Return the representation.

◆ get_selector()

const Selector& odil::webservices::STOWRSRequest::get_selector ( ) const

Return the selector.

◆ get_transfer_syntax()

const std::string& odil::webservices::STOWRSRequest::get_transfer_syntax ( ) const

Return the transfer syntax.

◆ get_url()

const URL& odil::webservices::STOWRSRequest::get_url ( ) const

Return the url.

◆ operator!=()

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

Difference operator.

◆ operator==()

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

Equality operator.

◆ request_dicom()

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

◆ set_base_url()

void odil::webservices::STOWRSRequest::set_base_url ( URL const &  url)

Set the base url.

◆ set_transfer_syntax()

void odil::webservices::STOWRSRequest::set_transfer_syntax ( std::string const &  transfer_syntax)

Set the transfer syntax.


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