Odil
A C++11 library for the DICOM standard
Loading...
Searching...
No Matches
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"
19
20namespace odil
21{
22
23namespace webservices
24{
25
28{
29public:
32
34 QIDORSResponse(HTTPResponse const & response);
35
36 QIDORSResponse(QIDORSResponse const &) = default;
40 ~QIDORSResponse() = default;
41
43 bool operator==(QIDORSResponse const & other) const;
44
46 bool operator!=(QIDORSResponse const & other) const;
47
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
69private:
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
std::vector< std::shared_ptr< DataSet > > DataSets
Data sets container.
Definition Value.h:60
HTTP Response.
Definition HTTPResponse.h:25
QIDO-RS response generator and parser.
Definition QIDORSResponse.h:28
HTTPResponse get_http_response() const
Generate the associated HTTP response.
Value::DataSets const & get_data_sets() const
Get the response items.
std::string const & get_media_type() const
Return the media type.
QIDORSResponse(QIDORSResponse &&)=default
Representation const & get_representation() const
Return the representation.
QIDORSResponse & operator=(QIDORSResponse const &)=default
QIDORSResponse(HTTPResponse const &response)
Parse an HTTPResponse as a WADORSResponse.
void set_data_sets(Value::DataSets const &data_sets)
Set the response items.
Value::DataSets & get_data_sets()
Modify the response items.
QIDORSResponse(QIDORSResponse const &)=default
void set_representation(Representation const &representation)
Set the representation.
QIDORSResponse & operator=(QIDORSResponse &&)=default
bool operator==(QIDORSResponse const &other) const
Equality operator.
bool operator!=(QIDORSResponse const &other) const
Difference operator.
Representation
Data representation for DICOM requests and responses.
Definition Utils.h:36
Definition Association.h:25
#define ODIL_API
Definition odil.h:28