|
|
@ -153,9 +153,24 @@ std::string CMetadataStorage::getResultPath(const std::string &projectName, cons
|
|
|
|
|
|
|
|
|
|
|
|
void CMetadataStorage::readProcessResult(CProcessResult &result, const std::string &path)
|
|
|
|
void CMetadataStorage::readProcessResult(CProcessResult &result, const std::string &path)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
// TODO
|
|
|
|
if (!NLMISC::CFile::fileExists(path))
|
|
|
|
result.clear();
|
|
|
|
{
|
|
|
|
// TODO
|
|
|
|
nlwarning("Process running for the first time, this may take a long time");
|
|
|
|
|
|
|
|
result.clear();
|
|
|
|
|
|
|
|
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();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
///////////////////////////////////////////////////////////////////////
|
|
|
|
///////////////////////////////////////////////////////////////////////
|
|
|
|