/*! * * Copyright (c) 2020-2023 Diality Inc. - All Rights Reserved. * \copyright * THIS CODE MAY NOT BE COPIED OR REPRODUCED IN ANY FORM, IN PART OR IN * WHOLE, WITHOUT THE EXPLICIT PERMISSION OF THE COPYRIGHT OWNER. * * \file MHDRTCEpochData.cpp * \author (last) Behrouz NematiPour * \date (last) 17-Apr-2021 * \author (original) Behrouz NemaiPour * \date (original) 02-Jul-2020 * */ #include "MHDRTCEpochData.h" using namespace Model; QVariantList MHDRTCEpochData::parameters() const { return { _data.mEpoch.value }; } bool MHDRTCEpochData::fromByteArray(const QByteArray &vByteArray, int *vIndex) { int index = 0; // message data start position if (GetValue(vByteArray, index, _data.mEpoch )) return true ; else { if(vIndex) *vIndex = index; return false; } } /*! * \brief MHDRTCEpochData::data * \details Provides model's Data from the received messages data values * \return Data */ MHDRTCEpochData::Data MHDRTCEpochData::data() const { Data data; data.mEpoch = _data.mEpoch .value; return data; }