41 lines
1.5 KiB
C
41 lines
1.5 KiB
C
|
#ifndef STATEOFHEALTHDATA_H
|
|||
|
#define STATEOFHEALTHDATA_H
|
|||
|
|
|||
|
#include "AbstractSpectrumDataMessage.h"
|
|||
|
#include "DataManager_Define.h"
|
|||
|
#include <QTextStream>
|
|||
|
#include <QVariantMap>
|
|||
|
|
|||
|
class StateOfHealthMessage : public AbstractSpectrumDataMessage
|
|||
|
{
|
|||
|
public:
|
|||
|
explicit StateOfHealthMessage();
|
|||
|
~StateOfHealthMessage();
|
|||
|
|
|||
|
virtual bool IsValid();
|
|||
|
const QVariant GetBlockData(QString& block_name);
|
|||
|
virtual void ClearData();
|
|||
|
|
|||
|
private:
|
|||
|
void InitBlockFlagInfo();
|
|||
|
virtual bool AnalyseMessgeBody(QTextStream& content);
|
|||
|
bool Analyse_Header_Block(QTextStream& content, QString& nextBlock);
|
|||
|
bool Analyse_Comment_Block(QTextStream& content, QString& nextBlock);
|
|||
|
bool Analyse_AirSamplerFlow_Block(QTextStream& content, QString& nextBlock);
|
|||
|
bool Analyse_AirSamplerEnv_Block(QTextStream& content, QString& nextBlock);
|
|||
|
bool Analyse_DetEnv_Block(QTextStream& content, QString& nextBlock);
|
|||
|
bool Analyse_NIMBIN_Block(QTextStream& content, QString& nextBlock);
|
|||
|
bool Analyse_PowerSupply_Block(QTextStream& content, QString& nextBlock);
|
|||
|
bool Analyse_EquipStatus_Block(QTextStream& content, QString& nextBlock);
|
|||
|
bool Analyse_TamperEnv_Block(QTextStream& content, QString& nextBlock);
|
|||
|
bool Analyse_ProcessSensors_Block(QTextStream& content, QString& nextBlock);
|
|||
|
bool Analyse_ChromatogramBlock(QTextStream& content, QString& nextBlock);
|
|||
|
|
|||
|
private:
|
|||
|
bool bIsValid;
|
|||
|
QStringList block_flag;
|
|||
|
QVariantMap rmssoh_msg_data;
|
|||
|
};
|
|||
|
|
|||
|
#endif // STATEOFHEALTHDATA_H
|