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

46 lines
952 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.

/*
* StatusWaitingProcedure.hh
*
* Created on: 27 авг. 2021 г.
* Author: sozonov
*/
#ifndef UMLIBRARY_TECHNOLOGICAL_FUNCTION_STATUSWAITINGPROCEDURE_HH_
#define UMLIBRARY_TECHNOLOGICAL_FUNCTION_STATUSWAITINGPROCEDURE_HH_
#include "../ITechFunction.hh"
#include "../../systemic/IFunctor.hh"
#include "../../systemic/IStatus.hh"
namespace technological
{
namespace function
{
class StatusWaitingProcedure: public ITechFunction
{
public:
struct Input {};
struct Output {};
bool run( const char * value, std::size_t size );
void stop();
short getState() const;
bool getResult( char * value, std::size_t size ) const;
StatusWaitingProcedure(systemic::IStatus &_status);
private:
enum State {
Run,
Disable
} state;
systemic::IStatus & status;
};
} /* namespace function */
} /* namespace technological */
#endif /* UMLIBRARY_TECHNOLOGICAL_FUNCTION_STATUSWAITINGPROCEDURE_HH_ */