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

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 int Wire::getNumber() const
{ {
return WireNumber; return WireNumber;

View File

@ -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;