ezEngine  Milestone 7
AssetFileHeader.h
1 #pragma once
2 
3 #include <CoreUtils/Basics.h>
4 #include <Foundation/IO/Stream.h>
5 
7 class EZ_COREUTILS_DLL ezAssetFileHeader
8 {
9 public:
11 
13  void Read(ezStreamReaderBase& stream);
14 
16  void Write(ezStreamWriterBase& stream);
17 
19  bool IsFileUpToDate(ezUInt64 uiExpectedHash) const { return m_uiHash == uiExpectedHash; }
20 
22  ezUInt64 GetFileHash() const { return m_uiHash; }
23 
25  void SetFileHash(ezUInt64 hash) { m_uiHash = hash; }
26 
27 private:
28  ezUInt64 m_uiHash;
29 };