mirror of
https://github.com/jscrane/r65emu.git
synced 2024-12-26 14:29:31 +00:00
18 lines
260 B
C++
18 lines
260 B
C++
#ifndef _LINE_H
|
|
#define _LINE_H
|
|
|
|
class Line {
|
|
public:
|
|
Line(): _state(false) {}
|
|
|
|
operator bool() { return _state; }
|
|
void set(bool state) { _state = state; }
|
|
void clear() { set(false); }
|
|
void set() { set(true); }
|
|
|
|
private:
|
|
volatile bool _state;
|
|
};
|
|
|
|
#endif
|