OSCAR-code/SleepLib/loader_plugins/cms50_loader.h

41 lines
867 B
C++

/*
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=3;
class CMS50Loader : public MachineLoader
{
public:
CMS50Loader();
virtual ~CMS50Loader();
virtual int 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:
int OpenCMS50(QString & path, Profile *profile);
bool OpenSPORFile(QString path, Machine * machine,Profile *profile);
private:
char *buffer;
};
#endif // CMS50LOADER_H