aboutsummaryrefslogtreecommitdiff
path: root/sp/src/common/replay/basereplayserializeable.h
blob: 7414ab5ed136fc37a1baf2ec2f9c1de1b91b8a46 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
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