xtd 0.2.0
uri_partial.h
Go to the documentation of this file.
1 #pragma once
4 #include "enum.h"
5 
7 namespace xtd {
15  enum class uri_partial {
17  scheme = 0,
19  authority = 1,
21  path = 2,
23  query = 3,
24  };
25 }
26 
28 template<> struct xtd::enum_register<xtd::uri_partial> {
29  explicit operator auto() const noexcept {return xtd::enum_collection<xtd::uri_partial> {{xtd::uri_partial::scheme, "scheme"}, {xtd::uri_partial::authority, "authority"}, {xtd::uri_partial::path, "path"}, {xtd::uri_partial::query, "query"}};}
30 };
The scheme, authority, path, and query segments of the URI.
The xtd namespace contains all fundamental classes to access Hardware, Os, System, and more.
Definition: system_report.h:17
std::vector< std::pair< enum_t, xtd::ustring > > enum_collection
Represents a pair of an enum_t value and a string of an enum of type enum_t.
Definition: enum_collection.h:19
Contains enum_ and enum_ut_ keywords.
uri_partial
Defines the parts of a URI for the xtd::uri::get_left_part method.
Definition: uri_partial.h:15
The xtd::uri::local_path data.
The scheme and authority segments of the URI.
The scheme segment of the URI.
Provides the registration struct for enumerations.
Definition: enum_register.h:36