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

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

/*
* SignalSwitch.h
*
* Created on: 1 окт. 2019 г.
* Author: user
*/
#ifndef SOURCE_SCHEMATIC_SIGNALSWITCH_H_
#define SOURCE_SCHEMATIC_SIGNALSWITCH_H_
#include "../systemic/IStatus.hh"
#include "../systemic/ISignal.hh"
namespace systemic { namespace detail {
class SignalSwitch : public ISignal, public IStatus {
private:
ISignal & a;
ISignal & b;
public:
SignalSwitch( ISignal & a, ISignal & b ) : a(a), b(b) {}
virtual ~SignalSwitch() = default;
operator float() const final;
operator bool() const final;
};
} /* namespace detail */
} /* namespace systemic */
#endif /* SOURCE_SCHEMATIC_SIGNALSWITCH_H_ */