mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-16 17:57:01 +08:00
32 lines
642 B
C++
32 lines
642 B
C++
#pragma once
|
|
|
|
#include <string>
|
|
#include <unordered_map>
|
|
#include <memory>
|
|
|
|
#include "AsstDef.h"
|
|
|
|
namespace json {
|
|
class value;
|
|
}
|
|
|
|
namespace asst {
|
|
class AbstractConfiger
|
|
{
|
|
public:
|
|
virtual ~AbstractConfiger() = default;
|
|
virtual bool load(const std::string& filename);
|
|
|
|
protected:
|
|
AbstractConfiger() = default;
|
|
AbstractConfiger(const AbstractConfiger& rhs) = default;
|
|
AbstractConfiger(AbstractConfiger&& rhs) noexcept = default;
|
|
|
|
AbstractConfiger& operator=(const AbstractConfiger& rhs) = default;
|
|
AbstractConfiger& operator=(AbstractConfiger&& rhs) noexcept = default;
|
|
|
|
virtual bool parse(json::value&& json) = 0;
|
|
};
|
|
}
|
|
|