Odil
A C++11 library for the DICOM standard
Loading...
Searching...
No Matches
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
18namespace odil
19{
20
21namespace webservices
22{
23
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
Definition Association.h:25
#define ODIL_API
Definition odil.h:28
Uniform resource locator.
Definition URL.h:26
std::string authority
Definition URL.h:28
std::string scheme
Definition URL.h:27
static URL parse(std::string const &string)
Parse an URL into its five components.
std::vector< std::pair< std::string, std::string > > parse_query(std::string const &separator="&") const
Parse attribute-value pairs in query string.
std::string path
Definition URL.h:29
std::string query
Definition URL.h:30
bool operator!=(URL const &other) const
std::string fragment
Definition URL.h:31
bool operator==(URL const &other) const