#ifndef WIRE #define WIRE #include #include #include class gate; class wire { public: wire(int number, bool io, string name = ""); int getState() const; void setState(bool newValue, int setTime); int getNumber() const; void addGate(gate* newGate); private: int wireNumber, value; string name; bool isInput; vector gates; }; #endif // !WIRE