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.

31 lines
1.0 KiB
C++

#ifndef _MSG_HPP_
#define _MSG_HPP_
#include <queue>
#include <mutex>
#include "WeighingDDSType.hpp"
#include <atomic>
class DdsMsgData {
public:
// 【修改】红外对射最新状态存储(放在最前面,保持正确缩进)
static std::mutex infrared_mtx_;
static WeighingSystem::InfraredUpdate latest_infrared_;
// static std::atomic<bool> stop_flag_;
static std::queue<WeighingSystem::BarUpdate> BarUpdate_queue_;
static std::queue<WeighingSystem::LightsUpdate> LightsUpdate_queue_;
static std::queue<WeighingSystem::InfraredUpdate> InfraredUpdate_queue_;
static std::queue<WeighingSystem::InfraredCommandUpdate> InfraredCommandUpdate_queue_;
static std::queue<WeighingSystem::LicenseSnapUpdate> LicenseSnapUpdate_queue_;
static std::queue<WeighingSystem::ScaleInfo> ScaleInfo_queue_;
static std::queue<WeighingSystem::WeightInfoOk> WeightInfoOk_queue_;
static std::queue<WeighingSystem::WeightInfoError> WeightInfoError_queue_;
static std::mutex queue_cv_mtx_;
};
#endif