#pragma once #include #include #include #include "Node.h" #include "Net.h" using std::string; using std::vector; class Circuit { public: Circuit() = default; virtual ~Circuit(); public: virtual void create(string label, vector nodes); virtual void new_node(string label, string type); virtual void new_net(string src, vector dests); virtual void sim(); virtual string result(); private: std::map nodes = {}; vector nets = {}; virtual Node * find_node(string label); };