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;
37  QIDORSResponse(QIDORSResponse &&) = default;
38  QIDORSResponse & operator=(QIDORSResponse &&) = default;
39 
41  ~QIDORSResponse() = default;
42 
44  bool operator==(QIDORSResponse const & other) const;
45 
47  bool operator!=(QIDORSResponse const & other) const;
48 
50  std::vector<DataSet> const & get_data_sets() const;
51 
53  std::vector<DataSet> & get_data_sets();
54 
56  void set_data_sets(std::vector<DataSet> const& data_sets);
57 
59  odil::webservices::Representation const & get_representation() const;
60 
62  void set_representation(odil::webservices::Representation const & representation);
63 
65  std::string const & get_media_type() const;
66 
68  HTTPResponse get_http_response() const;
69 
70 private:
71  std::vector<DataSet> _data_sets;
72  odil::webservices::Representation _representation;
73  std::string _media_type;
74 };
75 
76 }
77 
78 }
79 
80 
81 #endif //_14da8fe6_71a3_4c0b_91bf_9c518393a641
Definition: Association.h:24
#define ODIL_API
Definition: odil.h:28
Representation
Data representation for DICOM requests and responses.
Definition: Utils.h:35
QIDO-RS response generator and parser.
Definition: QIDORSResponse.h:27
HTTP Response.
Definition: HTTPResponse.h:24