MCPcopy Create free account
hub / github.com/NGT-labs/NGT / serializeAsText

Method serializeAsText

lib/NGT/ObjectRepository.h:63–71  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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);

Callers

nothing calls this directly

Calls 1

serializeAsTextFunction · 0.70

Tested by

no test coverage detected