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";
|
2011-09-13 08:12:07 +00:00
|
|
|
const int cms50_data_version=4;
|
2011-06-26 08:30:44 +00:00
|
|
|
|
2011-12-19 05:35:05 +00:00
|
|
|
|
|
|
|
/*! \class CMS50Loader
|
|
|
|
\brief Bulk Importer for CMS50 SPO2Review format.. Deprecated, as the Oximetry module does a better job
|
|
|
|
*/
|
2011-06-26 08:30:44 +00:00
|
|
|
class CMS50Loader : public MachineLoader
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
|
|
|
|
|
|
|
|
CMS50Loader();
|
|
|
|
virtual ~CMS50Loader();
|
2011-07-15 13:30:41 +00:00
|
|
|
virtual int Open(QString & path,Profile *profile);
|
2011-06-26 08:30:44 +00:00
|
|
|
static void Register();
|
|
|
|
|
2011-09-11 06:16:45 +00:00
|
|
|
virtual int Version() { return cms50_data_version; }
|
|
|
|
virtual const QString & ClassName() { return cms50_class_name; }
|
2011-06-26 08:30:44 +00:00
|
|
|
|
|
|
|
Machine *CreateMachine(Profile *profile);
|
|
|
|
|
|
|
|
|
|
|
|
protected:
|
2011-07-15 13:30:41 +00:00
|
|
|
int OpenCMS50(QString & path, Profile *profile);
|
2011-06-26 08:30:44 +00:00
|
|
|
bool OpenSPORFile(QString path, Machine * machine,Profile *profile);
|
|
|
|
|
|
|
|
private:
|
|
|
|
char *buffer;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // CMS50LOADER_H
|