Added: #1440 Project output meta file format

--HG--
branch : build_pipeline_v3
hg/feature/build_pipeline_v3
kaetemi 13 years ago
parent b0a4c2c321
commit 71cd3be857

@ -178,6 +178,20 @@ void CFileRemove::serial(NLMISC::IStream &stream) throw (NLMISC::EStream)
stream.serial(Lost);
}
void CProjectOutput::CFileOutput::serial(NLMISC::IStream &stream) throw (NLMISC::EStream)
{
uint version = stream.serialVersion(1);
stream.serial(CRC32);
stream.serial((uint8 &)Level); // test this :o)
}
void CProjectOutput::serial(NLMISC::IStream &stream) throw (NLMISC::EStream)
{
uint version = stream.serialVersion(1);
stream.serialCont(FilePaths);
stream.serialCont(FileOutputs);
}
CDatabaseStatus::CDatabaseStatus()
{
//CFile::createDirectoryTree(g_WorkspaceDirectory + PIPELINE_DATABASE_STATUS_SUBDIR);

@ -64,6 +64,14 @@ std::string getMetaFilePath(const std::string &path, const std::string &dotSuffi
// Status is generated CRC32 for reference.
// Errors are errors caused by using this file as an input or output file.
enum TFileState
{
Unknown = 0,
Success = 1,
Warning = 2,
Error = 3,
Removal = 4,
};
struct CFileError
{
@ -102,6 +110,21 @@ public:
void serial(NLMISC::IStream &stream) throw (NLMISC::EStream);
};
struct CProjectOutput
{
std::vector<std::string> FilePaths;
struct CFileOutput
{
uint32 CRC32;
TFileState Level;
void serial(NLMISC::IStream &stream) throw (NLMISC::EStream);
};
std::vector<CFileOutput> FileOutputs;
void serial(NLMISC::IStream &stream) throw (NLMISC::EStream);
};
typedef CCallback<void, const std::string &/*filePath*/, const CFileStatus &/*fileStatus*/, bool /*success*/> TFileStatusCallback;
/**

Loading…
Cancel
Save