Thread System 0.3.1
High-performance C++20 thread pool with work stealing and DAG scheduling
Loading...
Searching...
No Matches
kcenon::thread::config_changed_event Struct Reference

Configuration changed event. More...

#include <event_bus.h>

Inheritance diagram for kcenon::thread::config_changed_event:
Inheritance graph
Collaboration diagram for kcenon::thread::config_changed_event:
Collaboration graph

Public Member Functions

 config_changed_event (std::string path, std::any old_val, std::any new_val)
 
std::string type_name () const override
 Get event type name.
 
- Public Member Functions inherited from kcenon::thread::event_base
virtual ~event_base ()=default
 
std::chrono::steady_clock::time_point timestamp () const
 Get event timestamp.
 

Public Attributes

std::string config_path
 
std::any old_value
 
std::any new_value
 

Additional Inherited Members

- Protected Attributes inherited from kcenon::thread::event_base
std::chrono::steady_clock::time_point timestamp_ {std::chrono::steady_clock::now()}
 

Detailed Description

Configuration changed event.

Definition at line 314 of file event_bus.h.

Constructor & Destructor Documentation

◆ config_changed_event()

kcenon::thread::config_changed_event::config_changed_event ( std::string path,
std::any old_val,
std::any new_val )
inline

Definition at line 319 of file event_bus.h.

320 : config_path(std::move(path))
321 , old_value(std::move(old_val))
322 , new_value(std::move(new_val)) {}

Member Function Documentation

◆ type_name()

std::string kcenon::thread::config_changed_event::type_name ( ) const
inlineoverridevirtual

Get event type name.

Returns
Event type name

Implements kcenon::thread::event_base.

Definition at line 324 of file event_bus.h.

324 {
325 return "ConfigChangedEvent";
326 }

Member Data Documentation

◆ config_path

std::string kcenon::thread::config_changed_event::config_path

Definition at line 315 of file event_bus.h.

◆ new_value

std::any kcenon::thread::config_changed_event::new_value

Definition at line 317 of file event_bus.h.

◆ old_value

std::any kcenon::thread::config_changed_event::old_value

Definition at line 316 of file event_bus.h.


The documentation for this struct was generated from the following file: