| 61 | } |
| 62 | |
| 63 | void serializeAsText(const std::string &ofile, ObjectSpace *ospace) { |
| 64 | std::ofstream objs(ofile); |
| 65 | if (!objs.is_open()) { |
| 66 | std::stringstream msg; |
| 67 | msg << "NGT::ObjectSpace: Cannot open the specified file " << ofile << "."; |
| 68 | NGTThrowException(msg); |
| 69 | } |
| 70 | Parent::serializeAsText(objs, ospace); |
| 71 | } |
| 72 | |
| 73 | void deserializeAsText(const std::string &ifile, ObjectSpace *ospace) { |
| 74 | std::ifstream objs(ifile); |
nothing calls this directly
no test coverage detected