| 12345678910111213141516171819202122232425262728293031323334 |
- #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<string, string> m_mapConfigInfo;
- };
|