diff options
author | UnavailableDev <69792062+UnavailableDev@users.noreply.github.com> | 2024-06-12 12:05:45 +0200 |
---|---|---|
committer | UnavailableDev <69792062+UnavailableDev@users.noreply.github.com> | 2024-06-12 12:05:45 +0200 |
commit | 126a3c79516a6417181c3fe924084032d653b596 (patch) | |
tree | 1f1d356eccdf7d316cf7e991af036f0c0a6a53bd /Circuit.h | |
parent | c084bee21f66e6322d4d55b8700f0779f2c58d0d (diff) | |
parent | 8e0a865dd375baa71357ce817847ea8a9144434c (diff) |
Merge branch 'master' into node
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 = {}; +}; + |