/*! * * 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 MDGROPump.h * \date 7/1/2020 * \author Behrouz NematiPour * */ #pragma once // Qt #include // Project #include "MAbstract.h" #include "types.h" // forward declarations class tst_models; namespace Model { class MDGROPump : public MAbstract { // friends friend class ::tst_models; // DG RO Pump Data (U32) Set pt. pressure (F32) flow rate (F32) PWM QVariantList parameters() const override; struct { Types::U32 mPressure ; Types::F32 mFlowRate ; Types::F32 mPWM ; } _data; public: Type_Enum typeText () const override { return Type_Enum::eDatum; } Unit_Enum unitText () const override { return Unit_Enum::eDG ; } QString infoText () const override { return QString("ROPump"); } struct Data { quint32 mPressure = 0; /*!< ArterialPressure value of type float extracted out */ float mFlowRate = 0; /*!< VenousPressure value of type float extracted out */ float mPWM = 0; /*!< BloodPumpOcclusion value of type float extracted out */ }; MDGROPump () { } bool fromByteArray (const QByteArray &vByteArray , int *vIndex = nullptr) override; Data data ( ) const ; }; } typedef Model::MDGROPump::Data DGROPumpData;