diff options
Diffstat (limited to 'Circuit.h')
-rw-r--r-- | Circuit.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/Circuit.h b/Circuit.h new file mode 100644 index 0000000..5fd8d23 --- /dev/null +++ b/Circuit.h @@ -0,0 +1,27 @@ +#pragma once + +#include <string> +#include <vector> +#include <map> + +#include "Node.h" +#include "Net.h" + +using std::string; +using std::vector; + +class Circuit { +public: + Circuit() = default; + virtual ~Circuit(); + +public: + void create(string label, vector<string> nodes); + void new_node(string label, string type); + void new_net(string label, string node); + +private: + std::map<string, Node *> nodes = {}; + std::map<string, Net *> nets = {}; +}; + |