/* * 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_ */