Odil
A C++11 library for the DICOM standard
ItemWithParameters.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 _64665a37_223c_4b0c_b0c2_7be9111d9bdd
10 #define _64665a37_223c_4b0c_b0c2_7be9111d9bdd
11 
12 #include <istream>
13 #include <map>
14 #include <ostream>
15 #include <string>
16 
17 #include "odil/odil.h"
18 
19 namespace odil
20 {
21 
22 namespace webservices
23 {
24 
34 struct ODIL_API ItemWithParameters
35 {
36  std::string name;
37  std::map<std::string, std::string> name_parameters;
38  std::map<std::string, std::string> extension_parameters;
39 
40  ItemWithParameters(
41  std::string const & name="",
42  std::map<std::string, std::string> const & name_parameters={},
43  std::map<std::string, std::string> const & extension_parameters={});
44 
45  ItemWithParameters(ItemWithParameters const &) = default;
47  ItemWithParameters & operator=(ItemWithParameters const &) = default;
48  ItemWithParameters & operator=(ItemWithParameters &&) = default;
49  ~ItemWithParameters() = default;
50 
51  operator std::string() const;
52 };
53 
56 std::istream &
57 operator>>(std::istream & stream, ItemWithParameters & item);
58 
61 std::ostream &
62 operator<<(std::ostream & stream, ItemWithParameters const & item);
63 
64 }
65 
66 }
67 
68 #endif // _64665a37_223c_4b0c_b0c2_7be9111d9bdd
odil::webservices::operator<<
std::ostream & operator<<(std::ostream &stream, HTTPRequest const &request)
Output an HTTP request to a stream.
odil
Definition: Association.h:23
odil::webservices::ItemWithParameters
This container encapsulates the item with parameters as found in varied HTTP headers (Accept,...
Definition: ItemWithParameters.h:43
ODIL_API
#define ODIL_API
Definition: odil.h:27
odil.h
odil::webservices::operator>>
std::istream & operator>>(std::istream &stream, HTTPRequest &request)
Input an HTTP request from a stream.