29 lines
484 B
C++
29 lines
484 B
C++
/*
|
||
* IBrake.h
|
||
*
|
||
* Created on: 6 февр. 2018 г.
|
||
* Author: titov
|
||
*/
|
||
|
||
#ifndef SOURCE_DRIVER_IBRAKE_H_
|
||
#define SOURCE_DRIVER_IBRAKE_H_
|
||
|
||
namespace driver {
|
||
|
||
class IBrake {
|
||
public:
|
||
virtual void engage() = 0; //!<Наложить тормоз.
|
||
virtual void disengage() = 0; //!<Снять тормоз.
|
||
|
||
virtual bool isApplied() const = 0;
|
||
virtual bool isFree() const = 0;
|
||
|
||
virtual ~IBrake() = default;
|
||
};
|
||
|
||
}
|
||
|
||
|
||
|
||
#endif /* SOURCE_DRIVER_IBRAKE_H_ */
|