3#include <Core/RaCore.hpp>
34 m_f( f ), m_name( name ) {}
40 virtual void process()
override { m_f(); }
std::string m_name
The function to call.
virtual void process() override
Call the function.
virtual std::string getName() const override
Return the provided task name.
FunctionTask(const std::function< void(void)> &f, const std::string &name)
Create a function task.
virtual std::string getName() const =0
Return the name of the task.
virtual void process()=0
Do the task job. Will be called from the task queue threads.
virtual ~Task()
Destructor.
hepler function to manage enum as underlying types in VariableSet