Add convertToIO to the wire class
This commit is contained in:
1 parent
0e751426ad
commit
985e6c0c4d
2 files changed
+7
No files matched your search
@@ -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;
|
||||
|
||||
@@ -20,6 +20,7 @@ class Wire {
|
||||
string getName() const;
|
||||
|
||||
void setValue(int newValue, int setTime);
|
||||
void convertToIO(string newName);
|
||||
|
||||
private:
|
||||
int WireNumber, value, lastEvent;
|
||||
|
||||
Reference in new issue
Block a user