module_a_config.h 552 B

123456789101112131415161718192021222324252627
  1. #ifndef MODULE_A_CONFIG_H
  2. #define MODULE_A_CONFIG_H
  3. #include "project_marco.h"
  4. /// <summary>
  5. /// 配置模块A
  6. /// </summary>
  7. class module_a_config : public studio_singleton<module_a_config>
  8. {
  9. public:
  10. bool read_config(const std::string& fpath)
  11. {
  12. bool status = false;
  13. if (!std::filesystem::exists(std::filesystem::path(fpath)))
  14. {
  15. std::cout << "config file not exist" << std::endl;
  16. return status;
  17. }
  18. status = true;
  19. return status;
  20. }
  21. };
  22. #endif // MODULE_A_CONFIG_H