#pragma once /* *这个类用来读取配置文件 **/ class CConfigReader { public: CConfigReader(); ~CConfigReader(); static void ReadConfigFile(); static std::string getConfigValue(std::string key); static bool IsDebugMode(); static std::string getPathPlanningHost(); static std::string getMysqlHost(); static std::string getMysqlPort(); static std::string getMysqlUsername(); static std::string getMysqlPassword(); static std::string getDBName(); static std::string getTaskQueue(); static std::string getResultQueue(); static int getDeliverymanMaxOrderNum(); public: static std::map m_mapConfigInfo; };