Team Fortress 2 Source Code as on 22/4/2020
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

47 lines
1.4 KiB

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. //=======================================================================================//
  4. #ifndef IREPLAYSERIALIIZEABLE_H
  5. #define IREPLAYSERIALIIZEABLE_H
  6. #ifdef _WIN32
  7. #pragma once
  8. #endif
  9. //----------------------------------------------------------------------------------------
  10. #include "interface.h"
  11. #include "replay/replayhandle.h"
  12. //----------------------------------------------------------------------------------------
  13. class KeyValues;
  14. //----------------------------------------------------------------------------------------
  15. class IReplaySerializeable : public IBaseInterface
  16. {
  17. public:
  18. virtual void SetHandle( ReplayHandle_t h ) = 0;
  19. virtual ReplayHandle_t GetHandle() const = 0;
  20. virtual bool Read( KeyValues *pIn ) = 0;
  21. virtual void Write( KeyValues *pOut ) = 0;
  22. virtual const char *GetSubKeyTitle() const = 0;
  23. virtual const char *GetFilename() const = 0;
  24. virtual const char *GetPath() const = 0;
  25. virtual const char *GetFullFilename() const = 0;
  26. virtual void SetLocked( bool bLocked ) = 0;
  27. virtual bool IsLocked() const = 0;
  28. virtual void OnDelete() = 0;
  29. virtual void OnUnload() = 0;
  30. virtual const char *GetDebugName() const = 0;
  31. };
  32. //----------------------------------------------------------------------------------------
  33. #endif // IREPLAYSERIALIIZEABLE_H