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