Odil
A C++11 library for the DICOM standard
QIDORSResponse.h
Go to the documentation of this file.
1 /*************************************************************************
2  * odil - Copyright (C) Universite de Strasbourg
3  * Distributed under the terms of the CeCILL-B license, as published by
4  * the CEA-CNRS-INRIA. Refer to the LICENSE file or to
5  * http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
6  * for details.
7  ************************************************************************/
8 
9 #ifndef _14da8fe6_71a3_4c0b_91bf_9c518393a641
10 #define _14da8fe6_71a3_4c0b_91bf_9c518393a641
11 
12 #include <string>
13 #include <vector>
14 
15 #include "odil/DataSet.h"
16 #include "odil/odil.h"
18 #include "odil/webservices/Utils.h"
19 
20 namespace odil
21 {
22 
23 namespace webservices
24 {
25 
28 {
29 public:
32 
34  QIDORSResponse(HTTPResponse const & response);
35 
36  QIDORSResponse(QIDORSResponse const &) = default;
38  QIDORSResponse & operator=(QIDORSResponse const &) = default;
40  ~QIDORSResponse() = default;
41 
43  bool operator==(QIDORSResponse const & other) const;
44 
46  bool operator!=(QIDORSResponse const & other) const;
47 
49  Value::DataSets const & get_data_sets() const;
50 
53 
55  void set_data_sets(Value::DataSets const & data_sets);
56 
59 
61  void set_representation(Representation const & representation);
62 
64  std::string const & get_media_type() const;
65 
68 
69 private:
70  Value::DataSets _data_sets;
71  Representation _representation;
72  std::string _media_type;
73 };
74 
75 }
76 
77 }
78 
79 
80 #endif //_14da8fe6_71a3_4c0b_91bf_9c518393a641
odil::webservices::QIDORSResponse::operator==
bool operator==(QIDORSResponse const &other) const
Equality operator.
odil::webservices::QIDORSResponse::operator=
QIDORSResponse & operator=(QIDORSResponse const &)=default
odil
Definition: Association.h:25
ODIL_API
#define ODIL_API
Definition: odil.h:28
odil::webservices::QIDORSResponse::get_http_response
HTTPResponse get_http_response() const
Generate the associated HTTP response.
odil::webservices::HTTPResponse
HTTP Response.
Definition: HTTPResponse.h:25
odil::webservices::QIDORSResponse::operator=
QIDORSResponse & operator=(QIDORSResponse &&)=default
odil::webservices::QIDORSResponse
QIDO-RS response generator and parser.
Definition: QIDORSResponse.h:28
odil::webservices::QIDORSResponse::QIDORSResponse
QIDORSResponse()
Constructor.
Utils.h
odil.h
odil::webservices::QIDORSResponse::~QIDORSResponse
~QIDORSResponse()=default
odil::webservices::QIDORSResponse::get_data_sets
Value::DataSets & get_data_sets()
Modify the response items.
odil::webservices::QIDORSResponse::QIDORSResponse
QIDORSResponse(HTTPResponse const &response)
Parse an HTTPResponse as a WADORSResponse.
odil::webservices::QIDORSResponse::get_media_type
std::string const & get_media_type() const
Return the media type.
odil::webservices::QIDORSResponse::get_representation
Representation const & get_representation() const
Return the representation.
odil::Value::DataSets
std::vector< std::shared_ptr< DataSet > > DataSets
Data sets container.
Definition: Value.h:60
odil::webservices::QIDORSResponse::set_data_sets
void set_data_sets(Value::DataSets const &data_sets)
Set the response items.
odil::webservices::QIDORSResponse::get_data_sets
Value::DataSets const & get_data_sets() const
Get the response items.
odil::webservices::QIDORSResponse::set_representation
void set_representation(Representation const &representation)
Set the representation.
odil::webservices::QIDORSResponse::QIDORSResponse
QIDORSResponse(QIDORSResponse const &)=default
HTTPResponse.h
odil::webservices::QIDORSResponse::operator!=
bool operator!=(QIDORSResponse const &other) const
Difference operator.
DataSet.h
odil::webservices::Representation
Representation
Data representation for DICOM requests and responses.
Definition: Utils.h:36
odil::webservices::QIDORSResponse::QIDORSResponse
QIDORSResponse(QIDORSResponse &&)=default