diff options
| author | Eugen Wissner <belka@caraus.de> | 2023-04-17 15:05:20 +0200 |
|---|---|---|
| committer | Eugen Wissner <belka@caraus.de> | 2023-04-17 15:05:20 +0200 |
| commit | 79bdca04e2cc9e13bbfa1cac7619d5e4a56ff0bd (patch) | |
| tree | 1d267c727247c1b20dc113737ce356f3b7fa09a0 /src/package.h | |
| parent | 34b10f41aa285e423cccb161342b68ae7275da4b (diff) | |
| download | slackbuilder-79bdca04e2cc9e13bbfa1cac7619d5e4a56ff0bd.tar.gz | |
Remove SBo differ experiment
Diffstat (limited to 'src/package.h')
| -rw-r--r-- | src/package.h | 50 |
1 files changed, 0 insertions, 50 deletions
diff --git a/src/package.h b/src/package.h deleted file mode 100644 index 109f065..0000000 --- a/src/package.h +++ /dev/null @@ -1,50 +0,0 @@ -#pragma once - -#include <string> -#include <optional> -#include <unordered_map> -#include <set> -#include <forward_list> - -namespace katja -{ - class package - { - std::string m_name; - std::string m_version; - std::string m_architecture; - std::string m_tag; - - public: - explicit package(const std::string& name, const std::string& version, - const std::string& architecture, const std::string& tag); - - const std::string& name() const noexcept; - const std::string& version() const noexcept; - const std::string& architecture() const noexcept; - const std::string& tag() const noexcept; - - static std::optional<package> parse(const std::string& full_name) noexcept; - }; - - class repository - { - public: - virtual std::unordered_map<std::string, package> list(const std::set<std::string>& package_names) = 0; - virtual void refresh() = 0; - virtual std::forward_list<std::string> check_dependencies(const std::string& package_name) = 0; - }; - - std::unordered_map<std::string, package> read_package_database(); - - class package_exception : public std::exception - { - std::string m_message; - - public: - explicit package_exception(const std::string& package_name, const std::string& reason) noexcept; - - const std::string_view package_name() const noexcept; - const char *what() const noexcept override; - }; -} |
