mirror of
https://codeberg.org/vyn/mirai.git
synced 2025-07-01 17:03:19 +00:00
27 lines
513 B
C++
27 lines
513 B
C++
/*
|
|
* 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
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include "nlohmann/json.hpp"
|
|
#include <string>
|
|
#include <vector>
|
|
|
|
namespace mirai
|
|
{
|
|
|
|
class Config
|
|
{
|
|
public:
|
|
Config(const std::string &path);
|
|
|
|
std::vector<std::string> sources() const;
|
|
|
|
private:
|
|
std::string path_;
|
|
nlohmann::json configJson_;
|
|
};
|
|
} // namespace mirai
|