/*! * * 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 MDGPressuresData.h * \date 7/2/2020 * \author Behrouz NematiPour * */ #pragma once // Qt #include // Project #include "MAbstract.h" #include "types.h" // forward declarations class tst_models; namespace Model { class MDGPressures : public MAbstract { // friends friend class ::tst_models; // DG Pressures Data (F32) RO inlet PSI (F32) RO outlet PSI (F32) Drain inlet PSI (F32) Drain outlet PSI QString stringPrefix = "D,DG,Pressures"; struct { Types::F32 mROInletPSI ; Types::F32 mROOutletPSI ; Types::F32 mDrainInletPSI ; Types::F32 mDrainOutletPSI ; } _data; public: struct Data { float mROInletPSI = 0; /*!< Reservoir1 Prim value of type float extracted out */ float mROOutletPSI = 0; /*!< Reservoir1 Bkup value of type float extracted out */ float mDrainInletPSI = 0; /*!< Reservoir2 Prim value of type float extracted out */ float mDrainOutletPSI = 0; /*!< Reservoir2 Bkup value of type float extracted out */ }; MDGPressures () {} QString toString ( ) const ; void toVariantList ( QVariantList &vData ) const ; bool fromByteArray (const QByteArray &vByteArray , int *vIndex = nullptr) ; Data data ( ) const ; }; } typedef Model::MDGPressures::Data DGPressuresData;