shithub: aacenc

ref: d04af1ccc8ae96d05a18d4742206712d24a02d38
dir: /wingui/FileSerializable.h/

View raw version
// FileSerializable.h: interface for the CFileSerializable class.
// Author: Torsten Landmann
//
// An interface for classes that can be serialized to or deserialized
// from a file stream.
// Also contains some utility methods for CArchive interaction.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_FILESERIALIZABLE_H__5FC5E381_1729_11D5_8402_0080C88C25BD__INCLUDED_)
#define AFX_FILESERIALIZABLE_H__5FC5E381_1729_11D5_8402_0080C88C25BD__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

class CFileSerializable  
{
public:
	CFileSerializable();
	virtual ~CFileSerializable();

	virtual bool PutToArchive(CArchive &oArchive) const=0;
	virtual bool GetFromArchive(CArchive &oArchive)=0;

	static void SerializeBool(CArchive &oArchive, bool bBool);
	static void DeSerializeBool(CArchive &oArchive, bool &bBool);
};

#endif // !defined(AFX_FILESERIALIZABLE_H__5FC5E381_1729_11D5_8402_0080C88C25BD__INCLUDED_)