| 7 | namespace PIME { |
| 8 | |
| 9 | bool loadJsonFile(const std::wstring filename, Json::Value& result) { |
| 10 | std::ifstream fp(filename, std::ifstream::binary); |
| 11 | if (fp) { |
| 12 | fp >> result; |
| 13 | return true; |
| 14 | } |
| 15 | return false; |
| 16 | } |
| 17 | |
| 18 | bool saveJsonFile(const std::wstring filename, Json::Value& data) { |
| 19 | std::ofstream fp(filename, std::ifstream::binary); |
no outgoing calls
no test coverage detected