You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
663 B
C++

#ifndef WEIGHUI_DDS_MSG_HPP
#define WEIGHUI_DDS_MSG_HPP
#include <queue>
#include <mutex>
#include "WeighingDDSType.hpp"
class DdsMsgData {
public:
static std::queue<WeighingSystem::WeightInfoOk> WeightInfoOk_queue_;
// 称重业务异常信息 (Warning 主题, 弹窗样式与 WeightInfoOk 完全一致)
static std::queue<WeighingSystem::WeightInfoError> WeightInfoError_queue_;
static std::queue<WeighingSystem::SummaryUpdate> SummaryUpdate_queue_;
// 实时重量 (来自 weigh 程序的 ScaleInfo 主题)
static std::queue<WeighingSystem::ScaleInfo> ScaleInfo_queue_;
static std::mutex queue_cv_mtx_;
};
#endif