bool CFunctionDB::load(const std::string& fileName) { CCopasiXML XML; XML.setFunctionList(&mLoadedFunctions); std::fstream str(fileName.c_str()); if (str.fail()) return false; if (!XML.load(str, "")) return false; return true; }
bool CFunctionDB::load() { CCopasiXML XML; XML.setFunctionList(&mLoadedFunctions); std::stringstream DB; DB.str(FunctionDBxml); if (DB.fail()) return false; if (!XML.load(DB, "")) return false; return true; }
bool CFunctionDB::save(const std::string& fileName) { CCopasiXML XML; XML.setFunctionList(&mLoadedFunctions); return XML.CCopasiXMLInterface::save(fileName, fileName); }