/*! * * 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 mtreatmentranges.h * \author (last) Behrouz NemaiPour * \date (last) 04-Jun-2020 * \author (original) Behrouz NematiPour * \date (original) 31-Mar-2020 * */ #pragma once // Qt #include // Project #include "types.h" // forward declarations class tst_models; namespace Model { class MTreatmentRanges { // friends friend class ::tst_models; public: QString stringPrefix = "Treatment Ranges"; struct Data { quint32 mDuration_Min = 0; /*!< mDuration_Min value of type U32 extracted out */ quint32 mDuration_Max = 0; /*!< mDuration_Max value of type U32 extracted out */ float mUltrafiltration_Volume_Min = 0; /*!< mUltrafiltration_Volume_Min value of type float extracted out */ float mUltrafiltration_Volume_Max = 0; /*!< mUltrafiltration_Volume_Max value of type float extracted out */ quint32 mDialysate_Flow_Min = 0; /*!< mDialysate_Flow_Min value of type U32 extracted out */ quint32 mDialysate_Flow_Max = 0; /*!< mDialysate_Flow_Max value of type U32 extracted out */ }; private: struct { Types::U32 mDuration_Min ; Types::U32 mDuration_Max ; Types::F32 mUltrafiltration_Volume_Min ; Types::F32 mUltrafiltration_Volume_Max ; Types::U32 mDialysate_Flow_Min ; Types::U32 mDialysate_Flow_Max ; } _data; public: MTreatmentRanges () { } QString toString ( ) const ; void toVariantList ( QVariantList &vData ) const ; bool fromByteArray (const QByteArray &vByteArray , int *vIndex = nullptr); Data data() const; }; } typedef Model::MTreatmentRanges::Data TreatmentRangesData;