| 1 | /* EMArawData_def.h |
| 2 | * |
| 3 | * Copyright (C) 2023 David Weenink |
| 4 | * |
| 5 | * This code is free software; you can redistribute it and/or modify |
| 6 | * it under the terms of the GNU General Public License as published by |
| 7 | * the Free Software Foundation; either version 2 of the License, or (at |
| 8 | * your option) any later version. |
| 9 | * |
| 10 | * This code is distributed in the hope that it will be useful, but |
| 11 | * WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 13 | * General Public License for more details. |
| 14 | * |
| 15 | * You should have received a copy of the GNU General Public License |
| 16 | * along with this work. If not, see <http://www.gnu.org/licenses/>. |
| 17 | */ |
| 18 | |
| 19 | #define ooSTRUCT EMATransmitter_Frame |
| 20 | oo_DEFINE_STRUCT (EMATransmitter_Frame) |
| 21 | oo_INTEGER (numberOfTransmitters) |
| 22 | oo_VEC (amplitudes, numberOfTransmitters) |
| 23 | oo_END_STRUCT (EMATransmitter_Frame) |
| 24 | #undef ooSTRUCT |
| 25 | |
| 26 | #define ooSTRUCT EMArawData_Frame |
| 27 | oo_DEFINE_STRUCT (EMArawData_Frame) |
| 28 | oo_INTEGER (numberOfSensors) |
| 29 | oo_STRUCTVEC (EMATransmitter_Frame, transmitterFrames, numberOfSensors) |
| 30 | oo_END_STRUCT (EMArawData_Frame) |
| 31 | #undef ooSTRUCT |
| 32 | |
| 33 | #define ooSTRUCT EMArawData |
| 34 | oo_DEFINE_CLASS (EMArawData, Sampled) |
| 35 | oo_INTEGER (numberOfSensors) |
| 36 | oo_INTEGER (numberOfTransmitters) |
| 37 | oo_STRUCTVEC (EMArawData_Frame, emaRawDataFrames, nx) |
| 38 | oo_MAT (sensorCalibrations, numberOfSensors, numberOfTransmitters) |
| 39 | #if oo_DECLARING |
| 40 | void v1_info () |
| 41 | override; |
| 42 | int v_domainQuantity () const |
| 43 | override { return MelderQuantity_TIME_SECONDS; } |
| 44 | #endif |
| 45 | |
| 46 | oo_END_CLASS (EMArawData) |
| 47 | #undef ooSTRUCT |
| 48 | |
| 49 | /* End of file EMArawData_def.h */ |