Add slackware package database parser
This commit is contained in:
28
include/katja/database.hpp
Normal file
28
include/katja/database.hpp
Normal file
@ -0,0 +1,28 @@
|
||||
#pragma once
|
||||
|
||||
#include <string>
|
||||
|
||||
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 build_tag;
|
||||
const std::string architecture;
|
||||
const std::string version;
|
||||
const std::string name;
|
||||
|
||||
database_package(const std::string& fullname);
|
||||
|
||||
std::string to_string() const;
|
||||
};
|
||||
|
||||
|
||||
}
|
Reference in New Issue
Block a user