#ifndef READ_CONFIG #define READ_CONFIG #include #include enum class ActionType { CT_CONFIG, CT_BUILD, CT_CLEAR }; struct CMakeCmd { ActionType type; std::vector args; }; struct CmdInfo { std::string vsbat; std::unordered_map> 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