|
|
|
@ -153,9 +153,24 @@ std::string CMetadataStorage::getResultPath(const std::string &projectName, cons
|
|
|
|
|
|
|
|
|
|
void CMetadataStorage::readProcessResult(CProcessResult &result, const std::string &path)
|
|
|
|
|
{
|
|
|
|
|
// TODO
|
|
|
|
|
if (!NLMISC::CFile::fileExists(path))
|
|
|
|
|
{
|
|
|
|
|
nlwarning("Process running for the first time, this may take a long time");
|
|
|
|
|
result.clear();
|
|
|
|
|
// TODO
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
NLMISC::CIFile is(path, false);
|
|
|
|
|
result.serial(is);
|
|
|
|
|
is.close();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void CMetadataStorage::writeProcessResult(const CProcessResult &result, const std::string &path)
|
|
|
|
|
{
|
|
|
|
|
NLMISC::COFile os(path, false, false, true);
|
|
|
|
|
const_cast<CProcessResult &>(result).serial(os);
|
|
|
|
|
os.flush();
|
|
|
|
|
os.close();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
///////////////////////////////////////////////////////////////////////
|
|
|
|
|