/*! * * Copyright (c) 2019-2020 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 mloadcellreadings.h * \author (last) Behrouz NemaiPour * \date (last) 22-Jun-2020 * \author (original) Behrouz NemaiPour * \date (original) 10-Jun-2020 * */ #pragma once // Qt #include // Project #include "types.h" // forward declarations class tst_models; namespace Model { class MLoadCellReadings { // friends friend class ::tst_models; public: QString stringPrefix = "Load Cell Readings"; struct Data { float mReservoir1Prim = 0; /*!< ArterialPressure value of type float extracted out */ float mReservoir1Bkup = 0; /*!< VenousPressure value of type float extracted out */ float mReservoir2Prim = 0; /*!< BloodPumpOcclusion value of type float extracted out */ float mReservoir2Bkup = 0; /*!< DialysateInletPumpOcclusion value of type float extracted out */ }; private: struct { Types::F32 mReservoir1Prim ; Types::F32 mReservoir1Bkup ; Types::F32 mReservoir2Prim ; Types::F32 mReservoir2Bkup ; } _data; public: MLoadCellReadings () { } QString toString ( ) const ; void toVariantList ( QVariantList &vData ) const ; bool fromByteArray (const QByteArray &vByteArray , int *vIndex = nullptr); Data data() const; }; } typedef Model::MLoadCellReadings::Data LoadCellReadingsData;