Add convertToIO to the wire class
This commit is contained in:
parent
0e751426ad
commit
985e6c0c4d
@ -32,6 +32,12 @@ void Wire::setValue(int newValue, int setTime)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void Wire::convertToIO(string newName)
|
||||||
|
{
|
||||||
|
name = newName;
|
||||||
|
isPrint = true;
|
||||||
|
}
|
||||||
|
|
||||||
int Wire::getNumber() const
|
int Wire::getNumber() const
|
||||||
{
|
{
|
||||||
return WireNumber;
|
return WireNumber;
|
||||||
|
@ -20,6 +20,7 @@ class Wire {
|
|||||||
string getName() const;
|
string getName() const;
|
||||||
|
|
||||||
void setValue(int newValue, int setTime);
|
void setValue(int newValue, int setTime);
|
||||||
|
void convertToIO(string newName);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
int WireNumber, value, lastEvent;
|
int WireNumber, value, lastEvent;
|
||||||
|
Loading…
Reference in New Issue
Block a user