Jasmine Karlsson
/
train_rail
New project
Switch.cpp@19:72b14c6cc845, 2018-06-11 (annotated)
- Committer:
- jasminealice
- Date:
- Mon Jun 11 10:55:45 2018 +0000
- Revision:
- 19:72b14c6cc845
- Child:
- 20:32ba0a5f2d02
Add class for Switch
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
jasminealice | 19:72b14c6cc845 | 1 | #include "Switch.h" |
jasminealice | 19:72b14c6cc845 | 2 | |
jasminealice | 19:72b14c6cc845 | 3 | Switch::Switch(unsigned int newaddress) |
jasminealice | 19:72b14c6cc845 | 4 | { |
jasminealice | 19:72b14c6cc845 | 5 | //ctor |
jasminealice | 19:72b14c6cc845 | 6 | address = newaddress; |
jasminealice | 19:72b14c6cc845 | 7 | enabled = false; |
jasminealice | 19:72b14c6cc845 | 8 | } |
jasminealice | 19:72b14c6cc845 | 9 | |
jasminealice | 19:72b14c6cc845 | 10 | Switch::~Switch() |
jasminealice | 19:72b14c6cc845 | 11 | { |
jasminealice | 19:72b14c6cc845 | 12 | //dtor |
jasminealice | 19:72b14c6cc845 | 13 | } |