2024-09-29 17:29:10 +03:00
|
|
|
#pragma once
|
|
|
|
#include <filesystem>
|
|
|
|
#include <string>
|
|
|
|
|
2024-10-02 17:51:51 +03:00
|
|
|
#include "includes/toml.hpp"
|
|
|
|
|
2024-09-29 17:29:10 +03:00
|
|
|
namespace fs = std::filesystem;
|
|
|
|
|
|
|
|
class KotoLibraryConfig {
|
2024-10-02 17:51:51 +03:00
|
|
|
public:
|
|
|
|
KotoLibraryConfig(std::string name, fs::path path);
|
|
|
|
KotoLibraryConfig(const toml::value& v);
|
|
|
|
~KotoLibraryConfig();
|
|
|
|
std::string getName();
|
|
|
|
fs::path getPath();
|
|
|
|
|
|
|
|
private:
|
|
|
|
std::string i_name;
|
|
|
|
fs::path i_path;
|
2024-09-29 17:29:10 +03:00
|
|
|
};
|