Index: sources/model/MTreatmentParametersResp.h
===================================================================
diff -u -r4fab8841b1040c8eaa406713ff9bdc8c65b7b6ac -r95a840fc93f1a2cd65732d835fad2aca0f03f28e
--- sources/model/MTreatmentParametersResp.h (.../MTreatmentParametersResp.h) (revision 4fab8841b1040c8eaa406713ff9bdc8c65b7b6ac)
+++ sources/model/MTreatmentParametersResp.h (.../MTreatmentParametersResp.h) (revision 95a840fc93f1a2cd65732d835fad2aca0f03f28e)
@@ -19,69 +19,109 @@
// Project
#include "types.h"
+#include "MAbstract.h"
-
class tst_models;
namespace Model {
-class MTreatmentParametersResponse
+
+/*!
+ * \brief The MTreatmentParametersResponse class
+ * \details The treatment parameters response model
+ *
+ * | MSG | CAN ID | Box | Type | Ack | Src | Dst | Description |
+ * |:----:|:------:|:---:|:------:|:---:|:---:|:---:|:------------------------------: |
+ * |0x3500| 0x020 | 6 | Rsp | Y | HD | UI | Treatment Parameters Response |
+ *
+ * | Payload ||
+ * | ||
+ * | #1:(U32) | \ref Data::requestValid |
+ * | #2:(U32) | \ref Data::bloodFlowRate |
+ * | #3:(U32) | \ref Data::dialysateFlowRate |
+ * | #4:(U32) | \ref Data::duration |
+ * | #5:(U32) | \ref Data::heparinStopTime |
+ * | #6:(U32) | \ref Data::salineBolus |
+ * | #7:(U32) | \ref Data::acidConcentrate |
+ * | #8:(U32) | \ref Data::bicarbonateConcentrate |
+ * | #9:(U32) | \ref Data::dialyzerType |
+ * | #10:(U32) | \ref Data::bloodPressureMeasureInterval |
+ * | #11:(U32) | \ref Data::rinsebackFlowRate |
+ * | #12:(U32) | \ref Data::arterialPressureLimitLow |
+ * | #13:(U32) | \ref Data::arterialPressureLimitHigh |
+ * | #14:(U32) | \ref Data::venousPressureLimitLow |
+ * | #15:(U32) | \ref Data::venousPressureLimitHigh |
+ * | #16:(U32) | \ref Data::heparinDispensingRate |
+ * | #17:(U32) | \ref Data::heparinBolusVolume |
+ * | #18:(U32) | \ref Data::dialysateTemp |
+ *
+ * \sa Data
+ *
+ *
+ * | ||
+ * | ||
+ * | typeText | Event |
+ * | unitText | HD |
+ * | infoText | TreatmentParametersResponse |
+ *
+ */
+class MTreatmentParametersResponse : public MAbstract
{
friend class::tst_models;
+
+ QVariantList parameters() const override;
+
+ struct {
+ Types::U32 requestValid ;
+ Types::U32 bloodFlowRate ;
+ Types::U32 dialysateFlowRate ;
+ Types::U32 duration ;
+ Types::U32 heparinStopTime ;
+ Types::U32 salineBolus ;
+ Types::U32 acidConcentrate ;
+ Types::U32 bicarbonateConcentrate ;
+ Types::U32 dialyzerType ;
+ Types::U32 bloodPressureMeasureInterval ;
+ Types::U32 rinsebackFlowRate ;
+ Types::U32 arterialPressureLimitLow ;
+ Types::U32 arterialPressureLimitHigh ;
+ Types::U32 venousPressureLimitLow ;
+ Types::U32 venousPressureLimitHigh ;
+ Types::U32 heparinDispensingRate ;
+ Types::U32 heparinBolusVolume ;
+ Types::U32 dialysateTemp ;
+ } _data;
+
public:
- MTreatmentParametersResponse();
+ Type_Enum typeText () const override { return Type_Enum::eEvent; }
+ Unit_Enum unitText () const override { return Unit_Enum::eHD ; }
+ QString infoText () const override { return QString("TreatmentParametersResponse"); }
+
struct Data {
- quint32 requestValid = 0;
- quint32 bloodFlowRate = 0;
- quint32 dialysateFlowRate = 0;
- quint32 duration = 0;
- quint32 heparinStopTime = 0;
- quint32 salineBolus = 0;
- quint32 acidConcentrate = 0;
- quint32 bicarbonateConcentrate = 0;
- quint32 dialyzerType = 0;
- quint32 bloodPressureMeasureInterval = 0;
- quint32 rinsebackFlowRate = 0;
- quint32 arterialPressureLimitLow = 0;
- quint32 arterialPressureLimitHigh = 0;
- quint32 venousPressureLimitLow = 0;
- quint32 venousPressureLimitHigh = 0;
- quint32 heparinDispensingRate = 0;
- quint32 heparinBolusVolume = 0;
- quint32 dialysateTemp = 0;
+ quint32 requestValid = 0;
+ quint32 bloodFlowRate = 0;
+ quint32 dialysateFlowRate = 0;
+ quint32 duration = 0;
+ quint32 heparinStopTime = 0;
+ quint32 salineBolus = 0;
+ quint32 acidConcentrate = 0;
+ quint32 bicarbonateConcentrate = 0;
+ quint32 dialyzerType = 0;
+ quint32 bloodPressureMeasureInterval = 0;
+ quint32 rinsebackFlowRate = 0;
+ quint32 arterialPressureLimitLow = 0;
+ quint32 arterialPressureLimitHigh = 0;
+ quint32 venousPressureLimitLow = 0;
+ quint32 venousPressureLimitHigh = 0;
+ quint32 heparinDispensingRate = 0;
+ quint32 heparinBolusVolume = 0;
+ quint32 dialysateTemp = 0;
};
- Data fromVariantList(const QVariantList &list);
- void toVariantList(QVariantList &list) const;
- bool fromByteArray(const QByteArray &vByteArray, int *vIndex = nullptr);
- QString toString() const;
- Data data() const;
+ MTreatmentParametersResponse () {}
-protected:
- struct _Data {
- Types::U32 requestValid ;
- Types::U32 bloodFlowRate ;
- Types::U32 dialysateFlowRate ;
- Types::U32 duration ;
- Types::U32 heparinStopTime ;
- Types::U32 salineBolus ;
- Types::U32 acidConcentrate ;
- Types::U32 bicarbonateConcentrate ;
- Types::U32 dialyzerType ;
- Types::U32 bloodPressureMeasureInterval ;
- Types::U32 rinsebackFlowRate ;
- Types::U32 arterialPressureLimitLow ;
- Types::U32 arterialPressureLimitHigh ;
- Types::U32 venousPressureLimitLow ;
- Types::U32 venousPressureLimitHigh ;
- Types::U32 heparinDispensingRate ;
- Types::U32 heparinBolusVolume ;
- Types::U32 dialysateTemp ;
-
- } _data;
-
-private:
- QString stringPrefix = "Treatment Parameters Response";
+ bool fromByteArray (const QByteArray &vByteArray , int *vIndex = nullptr) override;
+ Data data ( ) const ;
};
}