2016-01-02 03:02:34 -08:00
|
|
|
/*----------------------------------------------------------------------------*/
|
|
|
|
|
/* Copyright (c) FIRST 2016. All Rights Reserved. */
|
|
|
|
|
/* Open Source Software - may be modified and shared by FRC teams. The code */
|
|
|
|
|
/* must be accompanied by the FIRST BSD license file in the root directory of */
|
|
|
|
|
/* the project. */
|
|
|
|
|
/*----------------------------------------------------------------------------*/
|
|
|
|
|
|
2014-06-30 17:32:00 -07:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
class Switch {
|
2016-05-20 17:30:37 -07:00
|
|
|
public:
|
2016-09-05 13:55:31 -07:00
|
|
|
virtual ~Switch() = default;
|
2015-04-26 19:19:57 -04:00
|
|
|
|
2014-06-30 17:32:00 -07:00
|
|
|
/// \brief Returns true when the switch is triggered.
|
|
|
|
|
virtual bool Get() = 0;
|
|
|
|
|
};
|