46 lines
948 B
C++
46 lines
948 B
C++
/*
|
|
* 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_ */
|