2024-04-13 11:52:42 +02:00
|
|
|
/*
|
2024-04-10 16:53:18 +02:00
|
|
|
* Mirai. Copyright (C) 2024 Vyn
|
|
|
|
* This file is licensed under version 3 of the GNU General Public License (GPL-3.0-only)
|
|
|
|
* The license can be found in the LICENSE file or at https://www.gnu.org/licenses/gpl-3.0.txt
|
|
|
|
*/
|
|
|
|
|
2024-08-16 21:35:12 +02:00
|
|
|
#pragma once
|
2024-04-10 16:53:18 +02:00
|
|
|
|
2024-08-16 21:35:12 +02:00
|
|
|
#include "nlohmann/json.hpp"
|
2024-04-10 16:53:18 +02:00
|
|
|
#include <string>
|
|
|
|
#include <vector>
|
|
|
|
|
2024-04-13 11:52:42 +02:00
|
|
|
namespace mirai
|
|
|
|
{
|
2024-04-10 16:53:18 +02:00
|
|
|
|
2024-08-16 21:35:12 +02:00
|
|
|
class Config
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
Config(const std::string &path);
|
|
|
|
|
|
|
|
std::vector<std::string> sources() const;
|
|
|
|
|
|
|
|
private:
|
|
|
|
std::string path_;
|
|
|
|
nlohmann::json configJson_;
|
|
|
|
};
|
|
|
|
} // namespace mirai
|