18 #ifndef DEEPSTREAM_MSGBROKER_C2D_RECEIVER_HPP
19 #define DEEPSTREAM_MSGBROKER_C2D_RECEIVER_HPP
24 #include <unordered_map>
31 class Cloud2DeviceReceiver {
34 std::string proto_lib;
36 std::string config_file_path;
37 std::string topicList;
38 std::string sensor_list_file;
46 class ISmartRecordingController :
public IHandler {
49 unsigned int startTime,
unsigned int duration,
51 virtual void stopSmartRecord(int64_t camera_id, uint32_t sessionId) = 0;
61 return std::find(handlers_.begin(), handlers_.end(), handler) != handlers_.end();
65 bool handleMessage(
const char* topic,
const char* payload,
unsigned int size);
76 bool parse_msgconv_config(
const std::string& file_path);
78 std::string config_path_;
80 std::vector<IHandler*> handlers_;
81 std::unordered_map<std::string, int64_t> sensor_name_id_map_;
82 std::unordered_map<std::string, uint32_t> sensor_sr_session_id_map_;