Add convertToIO to the wire class

This commit is contained in:
daniel
2017-04-24 19:35:30 -04:00
parent 0e751426ad
commit 985e6c0c4d
2 changed files with 7 additions and 0 deletions
+6
View File
@@ -32,6 +32,12 @@ void Wire::setValue(int newValue, int setTime)
}
}
void Wire::convertToIO(string newName)
{
name = newName;
isPrint = true;
}
int Wire::getNumber() const
{
return WireNumber;
+1
View File
@@ -20,6 +20,7 @@ class Wire {
string getName() const;
void setValue(int newValue, int setTime);
void convertToIO(string newName);
private:
int WireNumber, value, lastEvent;