#include <mferreader.h>
Classes | |
struct | mfer_frame_t |
Type for wrapping a MFER frame. More... | |
struct | mfer_tags_t |
Type for wrapping a MFER tag (TLV). More... | |
Public Types | |
enum | MFER_TAGS { MWF_IVL = 0x0B, MWF_SEN = 0x0C, MWF_BLK = 0x04, MWF_CHN = 0x05, MWF_SEQ = 0x06, MWF_WFM = 0x08, MWF_LDN = 0x09, MWF_WAV = 0x1E, MWF_ATT = 0x3F, MWF_DTP = 0x0A, MWF_OFF = 0x0D, MWF_NUL = 0x12, MWF_CMP = 0x0E, MWF_BLE = 0x01, MWF_PNT = 0x07, MWF_ZRO = 0x00, MWF_PRE = 0x40, MWF_MAN = 0x17, MWF_EVT = 0x41, MWF_INF = 0x15, MWF_CND = 0x44, MWF_NTE = 0x16, MWF_VER = 0x02, MWF_TXC = 0x03, MWF_FLT = 0x11, MWF_IPD = 0x0F, MWF_INVALID = 0xFF } |
enum | SamplingRateUnit { Frequency_hz = 0, Time_interval_sec = 1, Distance_m = 2 } |
enum | SamplingResolutionUnit { Volt = 0, mmHg_Torr = 1, Pa = 2, cmH2O = 3, mmHg_s = 4, dyne = 5, Newton = 6 } |
enum | WaveformType { UNDEFINED = 0, ECG_STD12 = 1, ECG_LTERM = 2, ECG_VECTR = 3, ECG_EXCER = 4, ECG_INTR = 5, ECG_SURF = 6, ECG_ILATE = 7, ECG_LATE = 8 } |
enum | WaveformCode { Lead_I = 1, Lead_2 = 2, Lead_V1 = 3, Lead_V2 = 4, Lead_V3 = 5, Lead_V4 = 6, Lead_V5 = 7, Lead_V6 = 8, Lead_V7 = 9 } |
typedef struct MferReader::mfer_tags_t | mfer_tags |
typedef qint16 | mfer_data_block |
typedef struct MferReader::mfer_frame_t | mfer_frame |
typedef void(MferReader::* | pt2mem )(char *, int) |
typedef std::map< MFER_TAGS, pt2mem > | parseFuncMap |
typedef std::map< MFER_TAGS, pt2mem >::const_iterator | parseFuncMap_cit |
Public Member Functions | |
MferReader (const QString &filename="") | |
bool | readFile (const QString &filename) |
int | fillData (QVector< QVector< double > > &pDest, int screennumber, int channel) |
bool | isValid () const |
QPointF | lineAxisBounds () const |
int | samplesprSecond () const |
Public Attributes | |
QVector< mfer_tags > | tagsVector |
mfer_frame | mferFrame |
QByteArray | baTemp |
MferReader is a class which parses a file encoded after the MFER ISO standard (ISO/TS 11073-92001). Files are encoded using TLV (tag length value) concept.
Definition at line 35 of file mferreader.h.
typedef qint16 MferReader::mfer_data_block |
typedef struct MferReader::mfer_frame_t MferReader::mfer_frame |
Type for wrapping a MFER frame.
typedef struct MferReader::mfer_tags_t MferReader::mfer_tags |
Type for wrapping a MFER tag (TLV).
typedef std::map<MFER_TAGS, pt2mem> MferReader::parseFuncMap |
typedef std::map<MFER_TAGS, pt2mem>::const_iterator MferReader::parseFuncMap_cit |
typedef void(MferReader::* MferReader::pt2mem)(char *, int) |
List of MFER tags.
Definition at line 39 of file mferreader.h.
List of supported units for MWF_IVL.
Frequency_hz | Measured in Hertz (Hz). |
Time_interval_sec | Measured in seconds (s). |
Distance_m | Mesaured in distance (m). |
Definition at line 88 of file mferreader.h.
List of supported units for MWF_SEN.
Volt | Voltage. |
mmHg_Torr | Pressure. |
Pa | Pressure. |
cmH2O | Pressure. |
mmHg_s | Pressure. |
dyne | Force. |
Newton | Force. |
Definition at line 96 of file mferreader.h.
List of supported types for MWF_LDN.
Lead_I | Lead I. |
Lead_2 | Lead II. |
Lead_V1 | Lead V1. |
Lead_V2 | Lead V2. |
Lead_V3 | Lead V3. |
Lead_V4 | Lead V4. |
Lead_V5 | Lead V5. |
Lead_V6 | Lead V6. |
Lead_V7 | Lead V7. |
Definition at line 122 of file mferreader.h.
List of supported types for MWF_WFM.
Definition at line 108 of file mferreader.h.
MferReader::MferReader | ( | const QString & | filename = "" |
) |
int MferReader::fillData | ( | QVector< QVector< double > > & | pDest, | |
int | screennumber, | |||
int | channel | |||
) |
Copy from the internal data structure to another data structure.
pDest | Destination data structure. | |
screennumber | Screen number used to fill the data structure. | |
channel | Channel number used to fill the data structure. (UNUSED) |
Definition at line 227 of file mferreader.cpp.
bool MferReader::isValid | ( | ) | const [inline] |
Definition at line 191 of file mferreader.h.
QPointF MferReader::lineAxisBounds | ( | ) | const [inline] |
bool MferReader::readFile | ( | const QString & | filename | ) |
Read and parse a file into an interal data structure.
filename | The file to read. |
Definition at line 54 of file mferreader.cpp.
int MferReader::samplesprSecond | ( | ) | const |
QByteArray MferReader::baTemp |
Wrapper for waveform data parsing.
Definition at line 199 of file mferreader.h.
Current parsed frame.
Definition at line 198 of file mferreader.h.
QVector<mfer_tags> MferReader::tagsVector |
List of all tags in the file.
Definition at line 197 of file mferreader.h.