/*! * * 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 mtreatmentultrafiltration.h * date 3/9/2020 * author Behrouz NematiPour * */ #pragma once // Qt #include // Project #include "types.h" namespace Model { class MOutletFlow { public: QString stringPrefix = "Dialysate Outlet Flow"; 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 */ }; private: struct { Types::F32 mRefUFVol ; Types::F32 mMeasUFVol ; Types::F32 mRotorSpeed ; Types::F32 mMotorSpeed ; Types::F32 mMotorCtlSpeed ; Types::F32 mMotorCtlCurrent ; Types::F32 mPWMDtCycle ; } _data; public: MOutletFlow () { } QString toString ( ) const ; void toVariantList ( QVariantList &vData ) const ; void fromByteArray (const QByteArray &vByteArray ); Data data() const; }; } typedef Model::MOutletFlow::Data OutletFlowData;