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 
14 #include "odil/odil.h"
15 
16 namespace odil
17 {
18 
19 namespace webservices
20 {
21 
23 struct ODIL_API URL
24 {
25  std::string scheme;
26  std::string authority;
27  std::string path;
28  std::string query;
29  std::string fragment;
30 
31  bool operator==(URL const & other) const;
32  bool operator!=(URL const & other) const;
33 
35  operator std::string() const;
36 
38  static URL parse(std::string const & string);
39 };
40 
41 }
42 
43 }
44 
45 #endif // _37346dec_0ab4_46d2_a54f_e349e79cd27d
std::string path
Definition: URL.h:27
std::string fragment
Definition: URL.h:29
Definition: Association.h:24
Uniform resource locator.
Definition: URL.h:23
std::string query
Definition: URL.h:28
std::string authority
Definition: URL.h:26
#define ODIL_API
Definition: odil.h:28
std::string scheme
Definition: URL.h:25