初版。

This commit is contained in:
2026-02-26 22:40:23 +08:00
commit 4ab7d84597
15 changed files with 2175 additions and 0 deletions

36
read_config.h Normal file
View File

@@ -0,0 +1,36 @@
#ifndef READ_CONFIG
#define READ_CONFIG
#include <string>
#include <unordered_map>
enum class ActionType {
CT_CONFIG,
CT_BUILD,
CT_CLEAR
};
struct CMakeCmd {
ActionType type;
std::vector<std::string> args;
};
struct CmdInfo {
std::string vsbat;
std::unordered_map<std::string, std::vector<CMakeCmd>> data;
};
class ReadConfig
{
public:
ReadConfig();
public:
bool Read(CmdInfo& info, ActionType type, const std::string& path);
ActionType GetType(const std::string& action);
public:
std::string mainRoot_;
};
#endif