MotorControlModuleSDFM_TMS3.../Projects/EFC_Communication/UMLibrary/technological/ITechFunction.hh
2024-06-07 11:12:56 +03:00

41 lines
1.0 KiB
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.

/*
* ITechFunction.h
*
* Created on: 23 нояб. 2016 г.
* Author: titov
*/
#ifndef SOURCE_TECHNOLOGICAL_ITECHFUNCTION_H_
#define SOURCE_TECHNOLOGICAL_ITECHFUNCTION_H_
#include <cstddef>
namespace technological {
struct ITechFunction {
enum State : short {
FAILURE = -1,
DISABLE = 0,
EXECUTE = 1,
FINISHED = 2
};
//!Запуск конкретной процедуры настройки и диагностики.
virtual bool run( const char * value, std::size_t size ) = 0;
//!Остановка кокнретной процедуры настройки и диагностики.
virtual void stop() = 0;
//!Получение значений конкретной процедуры.
virtual bool getResult( char * value, std::size_t size ) const = 0;
//!Получение состояние выполнения технологической функции.
virtual short getState() const = 0;
virtual ~ITechFunction() = default;
};
}
#endif /* SOURCE_TECHNOLOGICAL_ITECHFUNCTION_H_ */