MotorControlModuleSDFM_TMS3.../Projects/EFC_Communication/UMLibrary/processing/calc/IComputingTask.hh
2024-06-07 11:12:56 +03:00

33 lines
706 B
C++
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/*
* IComputingTask.hh
*
* Created on: 14 июл. 2020 г.
* Author: LeonidTitov
*/
#ifndef UMLIBRARY_PROCESSING_CALC_ICOMPUTINGTASK_HH_
#define UMLIBRARY_PROCESSING_CALC_ICOMPUTINGTASK_HH_
namespace processing { namespace calc {
struct IComputingTask {
virtual void compute_part() = 0;
virtual bool is_done() = 0;
};
struct IComputingTaskControl {
virtual void start() = 0;
virtual void cancel() = 0;
};
struct IComputingTaskHolder {
virtual processing::calc::IComputingTask & getComputingTask() = 0;
virtual void setComputingControl( processing::calc::IComputingTaskControl * task_control ) = 0;
};
}}
#endif /* UMLIBRARY_PROCESSING_CALC_ICOMPUTINGTASK_HH_ */