OSCAR-code/SleepLib/loader_plugins/cms50_loader.h

41 lines
871 B
C
Raw Normal View History

2011-06-26 08:30:44 +00:00
/*
SleepLib CMS50X Loader Header
Author: Mark Watkins <jedimark64@users.sourceforge.net>
License: GPL
*/
#ifndef CMS50LOADER_H
#define CMS50LOADER_H
#include "SleepLib/machine_loader.h"
const QString cms50_class_name="CMS50";
const int cms50_data_version=1;
class CMS50Loader : public MachineLoader
{
public:
CMS50Loader();
virtual ~CMS50Loader();
virtual bool Open(QString & path,Profile *profile);
static void Register();
virtual int Version() { return cms50_data_version; };
virtual const QString & ClassName() { return cms50_class_name; };
Machine *CreateMachine(Profile *profile);
protected:
bool OpenCMS50(QString & path, Profile *profile);
bool OpenSPORFile(QString path, Machine * machine,Profile *profile);
private:
char *buffer;
};
#endif // CMS50LOADER_H