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 
27 class ODIL_API QIDORSResponse
28 {
29 public:
31  QIDORSResponse();
32 
34  QIDORSResponse(HTTPResponse const & response);
35 
36  QIDORSResponse(QIDORSResponse const &) = default;
37  QIDORSResponse(QIDORSResponse &&) = default;
38  QIDORSResponse & operator=(QIDORSResponse const &) = default;
39  QIDORSResponse & operator=(QIDORSResponse &&) = 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 
52  Value::DataSets & get_data_sets();
53 
55  void set_data_sets(Value::DataSets const & data_sets);
56 
58  Representation const & get_representation() const;
59 
61  void set_representation(Representation const & representation);
62 
64  std::string const & get_media_type() const;
65 
67  HTTPResponse get_http_response() const;
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::operator==
bool operator==(Value::DataSets const &left, Value::DataSets const &right)
Equality test.
odil
Definition: Association.h:24
ODIL_API
#define ODIL_API
Definition: odil.h:28
odil::webservices::HTTPResponse
HTTP Response.
Definition: HTTPResponse.h:36
odil::webservices::QIDORSResponse
QIDO-RS response generator and parser.
Definition: QIDORSResponse.h:39
Utils.h
odil.h
odil::operator!=
bool operator!=(Value::DataSets const &left, Value::DataSets const &right)
Difference test.
odil::Value::DataSets
std::vector< std::shared_ptr< DataSet > > DataSets
Data sets container.
Definition: Value.h:66
HTTPResponse.h
DataSet.h
odil::webservices::Representation
Representation
Data representation for DICOM requests and responses.
Definition: Utils.h:47