MotorControlModuleSDFM_TMS3.../Projects/EFC_Communication/UMLibrary/schematic/StatusConst.hpp
2024-06-07 11:12:56 +03:00

34 lines
581 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.

/*
* StatusConst.hpp
*
* Created on: 29 сент. 2019 г.
* Author: user
*/
#ifndef SOURCE_SCHEMATIC_STATUSCONST_HPP_
#define SOURCE_SCHEMATIC_STATUSCONST_HPP_
#include "../systemic/IStatus.hh"
namespace systemic { namespace detail {
template <bool Val>
class ConstStatus : public systemic::IStatus {
public:
ConstStatus() {}
operator bool() const final {
return Val;
}
virtual ~ConstStatus() = default;
};
typedef ConstStatus<true> StatusTrue;
typedef ConstStatus<false> StatusFalse;
}}
#endif /* SOURCE_SCHEMATIC_STATUSCONST_HPP_ */