MiKTeX 26.5-next
A scalable TeX distribution
Loading...
Searching...
No Matches
Uri.h
1/* miktex/Core/Uri.h: -*- C++ -*-
2
3 Copyright (C) 1996-2018 Christian Schenk
4
5 This file is part of the MiKTeX Core Library.
6
7 The MiKTeX Core Library is free software; you can redistribute it
8 and/or modify it under the terms of the GNU General Public License
9 as published by the Free Software Foundation; either version 2, or
10 (at your option) any later version.
11
12 The MiKTeX Core Library is distributed in the hope that it will be
13 useful, but WITHOUT ANY WARRANTY; without even the implied warranty
14 of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
16
17 You should have received a copy of the GNU General Public License
18 along with the MiKTeX Core Library; if not, write to the Free
19 Software Foundation, 59 Temple Place - Suite 330, Boston, MA
20 02111-1307, USA. */
21
22#pragma once
23
24#if !defined(EFEE2F6C2B524088BC8A0490CBAD6BD9)
25#define EFEE2F6C2B524088BC8A0490CBAD6BD9
26
27#include <miktex/Core/config.h>
28
29#include <memory>
30#include <string>
31
32MIKTEX_CORE_BEGIN_NAMESPACE;
33
34class Uri
35{
36public:
37 Uri() = default;
38
39public:
40 Uri(const Uri& other) = delete;
41
42public:
43 Uri& operator=(const Uri& other) = delete;
44
45public:
46 Uri(Uri&& other) = delete;
47
48public:
49 Uri& operator=(Uri&& other) = delete;
50
51public:
52 virtual MIKTEXCOREEXPORT MIKTEXTHISCALL ~Uri() noexcept;
53
54public:
55 MIKTEXCOREEXPORT MIKTEXTHISCALL Uri(const std::string& uri);
56
57public:
58 MIKTEXCORETHISAPI(std::string) GetHost() const;
59
60public:
61 MIKTEXCORETHISAPI(int) GetPort() const;
62
63public:
64 MIKTEXCORETHISAPI(std::string) GetUserInfo() const;
65
66public:
67 MIKTEXCORETHISAPI(std::string) GetScheme() const;
68
69private:
70 class impl;
71 std::unique_ptr<impl> pimpl;
72};
73
74MIKTEX_CORE_END_NAMESPACE;
75
76#endif