* Serializes the dictionary and writes in to a file. */
| 40 | * Serializes the dictionary and writes in to a file. |
| 41 | */ |
| 42 | virtual void SerializeToFile(const std::string& fileName) const { |
| 43 | FILE* fp = OpenSerializableFileUtf8(fileName, "wb"); |
| 44 | if (fp == NULL) { |
| 45 | throw FileNotWritable(fileName); |
| 46 | } |
| 47 | SerializeToFile(fp); |
| 48 | fclose(fp); |
| 49 | } |
| 50 | |
| 51 | template <typename DICT> |
| 52 | static bool TryLoadFromFile(const std::string& fileName, |
nothing calls this directly
no test coverage detected