aboutsummaryrefslogtreecommitdiff
path: root/include/katja/database.hpp
diff options
context:
space:
mode:
authorEugen Wissner <belka@caraus.de>2025-04-19 14:48:48 +0200
committerEugen Wissner <belka@caraus.de>2025-04-19 14:48:48 +0200
commit20f3d98d637c5992c53f19590c15fa923f4eedcd (patch)
tree76842f0252e4179d47d5c33bd0338cbcd479fe71 /include/katja/database.hpp
parent0e6de99821d2262ada8e277fba1eb6059858ea41 (diff)
downloadkazbek-20f3d98d637c5992c53f19590c15fa923f4eedcd.tar.gz
Move katja into a separate repository
Diffstat (limited to 'include/katja/database.hpp')
-rw-r--r--include/katja/database.hpp39
1 files changed, 0 insertions, 39 deletions
diff --git a/include/katja/database.hpp b/include/katja/database.hpp
deleted file mode 100644
index ca85ab1..0000000
--- a/include/katja/database.hpp
+++ /dev/null
@@ -1,39 +0,0 @@
-/*
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at https://mozilla.org/MPL/2.0/.
- */
-#pragma once
-
-#include <string>
-#include <map>
-
-namespace katja
-{
- constexpr const char *database = "/var/lib/pkgtools/packages";
-
- class database_package
- {
- database_package(std::string&& name, std::string&& version,
- std::string&& architecture, std::string&& build_tag);
-
- static database_package create_database_package(const std::string& fullname);
-
- public:
- const std::string name;
- const std::string version;
- const std::string architecture;
- const std::string build_tag;
-
- database_package(const std::string& fullname);
-
- bool operator<(const database_package& that) const;
- bool operator>(const database_package& that) const;
-
- std::string to_string() const;
- };
-
- using package_database = std::multimap<std::string, database_package>;
-
- package_database read_installed_database();
-}