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 
35 {
36  std::string name;
37  std::map<std::string, std::string> name_parameters;
38  std::map<std::string, std::string> extension_parameters;
39 
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 
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
std::istream & operator>>(std::istream &stream, HTTPRequest &request)
Input an HTTP request from a stream.
std::ostream & operator<<(std::ostream &stream, HTTPRequest const &request)
Output an HTTP request to a stream.
Definition: Association.h:25
#define ODIL_API
Definition: odil.h:28
This container encapsulates the item with parameters as found in varied HTTP headers (Accept,...
Definition: ItemWithParameters.h:35
std::string name
Definition: ItemWithParameters.h:36
ItemWithParameters & operator=(ItemWithParameters const &)=default
ItemWithParameters(ItemWithParameters &&)=default
ItemWithParameters(std::string const &name="", std::map< std::string, std::string > const &name_parameters={}, std::map< std::string, std::string > const &extension_parameters={})
ItemWithParameters(ItemWithParameters const &)=default
std::map< std::string, std::string > extension_parameters
Definition: ItemWithParameters.h:38
ItemWithParameters & operator=(ItemWithParameters &&)=default
std::map< std::string, std::string > name_parameters
Definition: ItemWithParameters.h:37