Lines Matching refs:BatteryConfig
46 std::shared_ptr<BatteryConfig> BatteryConfig::instance_ = nullptr;
47 std::mutex BatteryConfig::mutex_;
49 BatteryConfig& BatteryConfig::GetInstance()
53 instance_ = std::make_shared<BatteryConfig>();
59 bool BatteryConfig::ParseConfig()
87 bool BatteryConfig::IsExist(std::string key) const
92 int32_t BatteryConfig::GetInt(std::string key, int32_t defVal) const
98 std::string BatteryConfig::GetString(std::string key, std::string defVal) const
104 const std::vector<BatteryConfig::LightConf>& BatteryConfig::GetLightConf() const
109 void BatteryConfig::DestroyInstance()
115 bool BatteryConfig::OpenFile(std::ifstream& ifsConf, const std::string& configPath)
141 void BatteryConfig::ParseConfInner()
151 void BatteryConfig::ParseLightConf(std::string level)
169 BatteryConfig::LightConf lightConf = {
179 Json::Value BatteryConfig::FindConf(const std::string& key) const
184 bool BatteryConfig::SplitKey(const std::string& key, std::vector<std::string>& keys) const
190 Json::Value BatteryConfig::GetValue(std::string key) const