MCPcopy Create free account
hub / github.com/comaps/comaps / ReadAll

Function ReadAll

generator/pygen/pygen.cpp:244–250  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

242}
243
244std::string ReadAll(std::string const & filename)
245{
246 std::ifstream file;
247 file.exceptions(std::ios::failbit | std::ios::badbit);
248 file.open(filename);
249 return std::string(std::istreambuf_iterator<char>(file), std::istreambuf_iterator<char>());
250}
251
252void InitClassificator(std::string const & resourcePath)
253{

Callers 1

InitClassificatorFunction · 0.85

Calls 1

openMethod · 0.80

Tested by

no test coverage detected