/*! * * 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 MTreatmentOutletFlowData.h * \date 3/9/2020 * \author Behrouz NematiPour * */ #pragma once // Qt #include // Project #include "MAbstract.h" #include "types.h" namespace Model { class MOutletFlow : public MAbstract { QVariantList parameters() const override; struct { Types::F32 mRefUFVol ; Types::F32 mMeasUFVol ; Types::F32 mRotorSpeed ; Types::F32 mMotorSpeed ; Types::F32 mMotorCtlSpeed ; Types::F32 mMotorCtlCurrent ; Types::F32 mPWMDtCycle ; } _data; public: Type_Enum typeText () const override { return Type_Enum::eDatum ; } Unit_Enum unitText () const override { return Unit_Enum::eHD ; } QString infoText () const override { return QString("OutletFlow"); } struct Data { float mRefUFVol = 0; /*!< Reference UF Volume value of type float extracted out */ float mMeasUFVol = 0; /*!< Measured UF Volume value of type float extracted out */ float mRotorSpeed = 0; /*!< Rotor Speed value of type float extracted out */ float mMotorSpeed = 0; /*!< Motor Speed value of type float extracted out */ float mMotorCtlSpeed = 0; /*!< Motor Controller Speed value of type float extracted out */ float mMotorCtlCurrent = 0; /*!< Motor Controller Current value of type float extracted out */ float mPWMDtCycle = 0; /*!< PWM Duty Cycle in % value of type float extracted out */ }; MOutletFlow () { } bool fromByteArray (const QByteArray &vByteArray , int *vIndex = nullptr) override; Data data ( ) const ; }; } typedef Model::MOutletFlow::Data OutletFlowData;