| 205 | } |
| 206 | |
| 207 | bool Configurations::parseFromFile(const std::string& configurationFile, Configurations* base) { |
| 208 | // We initial assertion with true because if we have assertion diabled, we want to pass this |
| 209 | // check and if assertion is enabled we will have values re-assigned any way. |
| 210 | bool assertionPassed = true; |
| 211 | ELPP_ASSERT((assertionPassed = base::utils::File::pathExists(configurationFile.c_str(), true)) == true, |
| 212 | "Configuration file [" << configurationFile << "] does not exist!"); |
| 213 | if (!assertionPassed) { |
| 214 | return false; |
| 215 | } |
| 216 | bool success = Parser::parseFromFile(configurationFile, this, base); |
| 217 | m_isFromFile = success; |
| 218 | return success; |
| 219 | } |
| 220 | |
| 221 | bool Configurations::parseFromText(const std::string& configurationsString, Configurations* base) { |
| 222 | bool success = Parser::parseFromText(configurationsString, this, base); |
nothing calls this directly
no test coverage detected