62 bool Start(
const std::string &path_name,
const double &time_interval_ms,
63 const std::string &channel_name =
"",
64 nlohmann::json *subscribe_param =
nullptr);
70 bool Stop(
const std::string &path_name,
const std::string& channel_name);
85 const std::string &message_type,
86 const std::string &channel_name);
89 std::map<std::string, UpdaterBase *> updater_map_;
Base Class for all data updater.
Management for all data updater.
void RegisterUpdater(std::string path_name, UpdaterBase *updater)
Register data updater by websocket path name.
bool Start(const std::string &path_name, const double &time_interval_ms, const std::string &channel_name="", nlohmann::json *subscribe_param=nullptr)
Start a updater implemetnent.
UpdaterBase * GetUpdater(const std::string &path_name)
Get registered updater
bool Stop(const std::string &path_name, const std::string &channel_name)
Stop updater publish data.
bool IsChannelInUpdater(const std::string &path_name, const std::string &message_type, const std::string &channel_name)
Check if the channel belongs to an updater.
virtual ~UpdaterManager()