Line data Source code
1 : /* 2 : Copyright 2021 Paul Colby 3 : 4 : This file is part of QtFit. 5 : 6 : QtFit is free software: you can redistribute it and/or modify 7 : it under the terms of the GNU Lesser General Public License as published by 8 : the Free Software Foundation, either version 3 of the License, or 9 : (at your option) any later version. 10 : 11 : QtFit is distributed in the hope that it will be useful, 12 : but WITHOUT ANY WARRANTY; without even the implied warranty of 13 : MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 : GNU Lesser General Public License for more details. 15 : 16 : You should have received a copy of the GNU Lesser General Public License 17 : along with QtFit. If not, see <http://www.gnu.org/licenses/>. 18 : */ 19 : 20 : #include "fileidmessage.h" 21 : #include "fileidmessage_p.h" 22 : 23 : #include <QDebug> 24 : 25 : QTFIT_BEGIN_NAMESPACE 26 : 27 : //FileIdMessage::FileIdMessage(const QByteArray dataRecord, const FieldDefinitions &fieldDefs, arch) 28 : // //: FitDataMessage(0, data, defn) ///< @todo 29 : //{ 30 : 31 : //} 32 : 33 : 34 0 : FileIdMessagePrivate::FileIdMessagePrivate(FileIdMessage * const q) : FitDataMessagePrivate(q) 35 : { 36 : 37 0 : } 38 : 39 0 : FileIdMessagePrivate::~FileIdMessagePrivate() 40 : { 41 : 42 0 : } 43 : 44 : /// @todo Generate implementation. 45 0 : bool FileIdMessagePrivate::setField(const int fieldId, const QByteArray data, int baseType) 46 : { 47 : // #define SET_FIELD(id,name,type) 48 : // case id: name = fromFitValue<type>(data, baseType) 49 : 50 : // switch fieldId { 51 : // case 0: type = fromFitValue<quint8 >(data, baseType); break; 52 : // case 1: manufactuter = fromFitValue<quint16>(data, baseType); break; 53 : // SET_FIT_MESSAGE_FIELD(0, type, quint8 ); break; 54 : // SET_FIT_MESSAGE_FIELD(1, manufacture, quint16); break; 55 : // default: 56 : // qWarning() << "Unknown field definition number" << fieldId 57 : // << "for" << messageName(); 58 : // return false; 59 : // } 60 0 : return FitDataMessagePrivate::setField(fieldId, data, baseType); 61 : } 62 : 63 : QTFIT_END_NAMESPACE