aboutsummaryrefslogtreecommitdiff
path: root/sp/src/common/replay/basereplayserializeable.h
diff options
context:
space:
mode:
authorJoe Ludwig <[email protected]>2013-06-26 15:22:04 -0700
committerJoe Ludwig <[email protected]>2013-06-26 15:22:04 -0700
commit39ed87570bdb2f86969d4be821c94b722dc71179 (patch)
treeabc53757f75f40c80278e87650ea92808274aa59 /sp/src/common/replay/basereplayserializeable.h
downloadsource-sdk-2013-39ed87570bdb2f86969d4be821c94b722dc71179.tar.xz
source-sdk-2013-39ed87570bdb2f86969d4be821c94b722dc71179.zip
First version of the SOurce SDK 2013
Diffstat (limited to 'sp/src/common/replay/basereplayserializeable.h')
-rw-r--r--sp/src/common/replay/basereplayserializeable.h43
1 files changed, 43 insertions, 0 deletions
diff --git a/sp/src/common/replay/basereplayserializeable.h b/sp/src/common/replay/basereplayserializeable.h
new file mode 100644
index 00000000..d30da7e2
--- /dev/null
+++ b/sp/src/common/replay/basereplayserializeable.h
@@ -0,0 +1,43 @@
+//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+//=======================================================================================//
+
+#ifndef REPLAYSERIALIIZEABLE_H
+#define REPLAYSERIALIIZEABLE_H
+#ifdef _WIN32
+#pragma once
+#endif
+
+//----------------------------------------------------------------------------------------
+
+#include "replay/ireplayserializeable.h"
+#include "replay/replayhandle.h"
+
+//----------------------------------------------------------------------------------------
+
+class CBaseReplaySerializeable : public IReplaySerializeable
+{
+public:
+ CBaseReplaySerializeable();
+
+ virtual void SetHandle( ReplayHandle_t h );
+ virtual ReplayHandle_t GetHandle() const;
+ virtual bool Read( KeyValues *pIn );
+ virtual void Write( KeyValues *pOut );
+ virtual const char *GetFilename() const;
+ virtual const char *GetFullFilename() const;
+ virtual const char *GetDebugName() const;
+ virtual void SetLocked( bool bLocked );
+ virtual bool IsLocked() const;
+ virtual void OnDelete();
+ virtual void OnUnload();
+ virtual void OnAddedToDirtyList();
+
+private:
+ ReplayHandle_t m_hThis;
+ bool m_bLocked;
+};
+
+//----------------------------------------------------------------------------------------
+
+#endif // REPLAYSERIALIIZEABLE_H \ No newline at end of file