2011-05-26 13:59:21 +00:00
|
|
|
/*
|
|
|
|
|
|
|
|
SleepLib PRS1 Loader Header
|
|
|
|
|
|
|
|
Author: Mark Watkins <jedimark64@users.sourceforge.net>
|
|
|
|
License: GPL
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef PRS1LOADER_H
|
|
|
|
#define PRS1LOADER_H
|
|
|
|
//#include <map>
|
|
|
|
//using namespace std;
|
|
|
|
#include "machine.h" // Base class: MachineLoader
|
|
|
|
#include "machine_loader.h"
|
|
|
|
#include "profiles.h"
|
|
|
|
|
|
|
|
class PRS1:public CPAP
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
PRS1(Profile *p,MachineID id=0);
|
|
|
|
virtual ~PRS1();
|
|
|
|
};
|
|
|
|
|
2011-05-28 03:27:07 +00:00
|
|
|
const int max_load_buffer_size=384*1024;
|
|
|
|
|
2011-05-26 13:59:21 +00:00
|
|
|
class PRS1Loader : public MachineLoader
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
PRS1Loader();
|
|
|
|
virtual ~PRS1Loader();
|
|
|
|
virtual bool Open(wxString & path,Profile *profile);
|
|
|
|
|
|
|
|
Machine *CreateMachine(wxString serial,Profile *profile);
|
|
|
|
|
|
|
|
static void Register();
|
|
|
|
protected:
|
|
|
|
wxString last;
|
|
|
|
map<wxString,Machine *> PRS1List;
|
|
|
|
int OpenMachine(Machine *m,wxString path);
|
|
|
|
bool ParseProperties(Machine *m,wxString filename);
|
|
|
|
bool OpenSummary(Session *session,wxString filename);
|
|
|
|
bool OpenEvents(Session *session,wxString filename);
|
|
|
|
bool OpenWaveforms(Session *session,wxString filename);
|
|
|
|
bool Parse002(Session *session,unsigned char *buffer,int size,time_t timestamp);
|
2011-05-28 03:27:07 +00:00
|
|
|
unsigned char * m_buffer;
|
2011-05-26 13:59:21 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
#endif // PRS1LOADER_H
|