26 #include <condition_variable> 30 #include <shared_mutex> 151 std::any
getParam(
const std::string& param_name)
const;
159 void setParam(
const std::string& param_name,
const std::any& param_value);
210 std::vector<param> params;
211 std::mutex processing_done_mut;
212 std::condition_variable processing_done_cond;
214 bool processed =
false;
295 void postEvent(std::vector<Object>& events);
336 std::list<Handler*> handlerList;
337 std::queue<Event::Object*> event_q;
338 std::mutex event_mut;
339 std::condition_variable available_event_cond;
340 std::atomic<bool> running =
true;
341 std::thread event_thread;
342 std::vector<std::thread> thread_pool;
345 std::shared_mutex handlerlist_mut;
347 std::unique_ptr<eventLogger> logger;
virtual ~Handler()=default
virtual void receiveEvent(Object *event)=0
Handler(Handler &&)=delete
Handler & operator=(const Handler &)=default
Handler & operator=(Handler &&)=delete
Handler(const Handler &)=default
bool isRegistered(Handler *handler)
void unregisterHandler(Handler *handler)
void registerHandler(Handler *handler)
Manager(Manager &&)=delete
Manager & operator=(Manager &&)=delete
Manager & operator=(const Manager &manager)=delete
Manager(const Manager &manager)=delete
eventLogger * getLogger()
void postEvent(Object *event)
void setParam(const std::string ¶m_name, const std::any ¶m_value)
bool paramExists(const std::string ¶m_name)
Event::Type getType() const
std::any getParam(const std::string ¶m_name) const
Object & operator=(Object &&)=delete
Object & operator=(const Object &obj)=delete
std::string type_to_string(Type event_type)
@ RT_WIDGET_PARAMETER_CHANGE_EVENT
@ THRESHOLD_CROSSING_EVENT
@ RT_DEVICE_UNPAUSE_EVENT
@ SETTINGS_OBJECT_REMOVE_EVENT
@ START_GENICAM_RECORDING_EVENT
@ RT_THREAD_UNPAUSE_EVENT
@ RT_WIDGET_STATE_CHANGE_EVENT
@ SETTINGS_OBJECT_INSERT_EVENT
@ IO_ALL_CONNECTIONS_QUERY_EVENT
@ IO_CONNECTION_QUERY_EVENT
@ PAUSE_GENICAM_RECORDING_EVENT
@ IO_BLOCK_OUTPUTS_QUERY_EVENT
@ STOP_GENICAM_RECORDING_EVENT