Odil
A C++11 library for the DICOM standard
URL.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 _37346dec_0ab4_46d2_a54f_e349e79cd27d
10 #define _37346dec_0ab4_46d2_a54f_e349e79cd27d
11 
12 #include <string>
13 #include <utility>
14 #include <vector>
15 
16 #include "odil/odil.h"
17 
18 namespace odil
19 {
20 
21 namespace webservices
22 {
23 
25 struct ODIL_API URL
26 {
27  std::string scheme;
28  std::string authority;
29  std::string path;
30  std::string query;
31  std::string fragment;
32 
33  bool operator==(URL const & other) const;
34  bool operator!=(URL const & other) const;
35 
37  operator std::string() const;
38 
40  std::vector<std::pair<std::string, std::string>>
41  parse_query(std::string const & separator="&") const;
42 
44  static URL parse(std::string const & string);
45 };
46 
47 }
48 
49 }
50 
51 #endif // _37346dec_0ab4_46d2_a54f_e349e79cd27d
std::string path
Definition: URL.h:29
bool operator!=(Value::DataSets const &left, Value::DataSets const &right)
Difference test.
std::string fragment
Definition: URL.h:31
Definition: Association.h:24
Uniform resource locator.
Definition: URL.h:25
std::string query
Definition: URL.h:30
std::string authority
Definition: URL.h:28
#define ODIL_API
Definition: odil.h:28
bool operator==(Value::DataSets const &left, Value::DataSets const &right)
Equality test.
std::string scheme
Definition: URL.h:27