|
Common System 0.2.0
Common interfaces and patterns for system integration
|


Public Member Functions | |
| function_job (std::function< void()> func, std::string name="function_job") | |
| VoidResult | execute () override |
| Execute the job. | |
| std::string | get_name () const override |
| Get the name of the job (for logging/debugging) | |
Public Member Functions inherited from kcenon::common::interfaces::IJob | |
| virtual | ~IJob ()=default |
| virtual int | get_priority () const |
| Get the priority of the job (higher = more important) | |
| virtual | ~IJob ()=default |
| virtual int | get_priority () const |
| Get the priority of the job. | |
Private Attributes | |
| std::function< void()> | func_ |
| std::string | name_ |
Simple function job wrapper
Definition at line 193 of file executor_example.cpp.
|
inlineexplicit |
|
inlineoverridevirtual |
Execute the job.
Implements kcenon::common::interfaces::IJob.
Definition at line 198 of file executor_example.cpp.
References func_.
|
inlineoverridevirtual |
Get the name of the job (for logging/debugging)
Implements kcenon::common::interfaces::IJob.
Definition at line 207 of file executor_example.cpp.
References name_.
|
private |
Definition at line 210 of file executor_example.cpp.
Referenced by execute().
|
private |
Definition at line 211 of file executor_example.cpp.
Referenced by get_name().