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.
33 lines
1.0 KiB
C++
33 lines
1.0 KiB
C++
#ifndef _MSG_HPP_
|
|
#define _MSG_HPP_
|
|
|
|
#include <queue>
|
|
#include <mutex>
|
|
#include "System.hpp"
|
|
|
|
class DdsMsgData {
|
|
public:
|
|
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_;
|
|
};
|
|
|
|
class MqttMsgData {
|
|
public:
|
|
static std::queue<mqtt::const_message_ptr> Mqtt_msg_queue_;
|
|
static std::mutex queue_cv_mtx_;
|
|
};
|
|
|
|
class SubPubData {
|
|
public:
|
|
static std::map<std::string, std::string> sub_to_pub_queue_;
|
|
static std::mutex queue_cv_mtx_;
|
|
};
|
|
|
|
#endif |