/* SleepLib PRS1 Loader Header Author: Mark Watkins License: GPL */ #ifndef PRS1LOADER_H #define PRS1LOADER_H //#include //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(); }; 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 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); }; #endif // PRS1LOADER_H