#ifndef WIRE #define WIRE #include #include #include using namespace std; class Gate; class Wire { public: Wire(int number, bool io, string inName = ""); void addGate(Gate* newGate); int getValue(int wantedTime) const; int getNumber() const; string getName() const; bool setValue(int newValue, int setTime); void convertToIO(string newName); Gate* getGate(int index); private: int WireNumber, value, lastEvent; vector historyTimes; vector historyValues; string name; bool isPrint; vector gates; }; #endif // !WIRE