MCPcopy Create free account
hub / github.com/Xtra-Computing/thundersvm / parseFromFile

Method parseFromFile

src/thundersvm/util/log.cpp:207–219  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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);

Callers

nothing calls this directly

Calls 1

setFromBaseMethod · 0.80

Tested by

no test coverage detected