MCPcopy Create free account
hub / github.com/OpenHD/OpenHD / read_int_from_file

Method read_int_from_file

OpenHD/ohd_common/src/openhd_util_filesystem.cpp:203–210  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

201}
202
203std::optional<int> OHDFilesystemUtil::read_int_from_file(
204 const std::string &filename) {
205 auto content = opt_read_file(filename);
206 if (!content.has_value()) {
207 return std::nullopt;
208 }
209 return OHDUtil::string_to_int(content.value());
210}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected