Horizon
tool_set_via_net.hpp
1 #pragma once
2 #include "core.hpp"
3 #include <forward_list>
4 
5 namespace horizon {
6 class ToolSetViaNet : public ToolBase {
7 public:
8  ToolSetViaNet(Core *c, ToolID tid);
9  ToolResponse begin(const ToolArgs &args) override;
10  ToolResponse update(const ToolArgs &args) override;
11  bool can_begin() override;
12  bool is_specific() override
13  {
14  return true;
15  }
16 
17 private:
18  std::set<class Via *> get_vias();
19 };
20 } // namespace horizon
This is what a Tool receives when the user did something.
Definition: core.hpp:27
bool can_begin() override
Definition: tool_set_via_net.cpp:33
Definition: tool_set_via_net.hpp:6
ToolResponse update(const ToolArgs &args) override
Gets called whenever the user generated some sort of input.
Definition: tool_set_via_net.cpp:62
ToolResponse begin(const ToolArgs &args) override
Gets called right after the constructor has finished.
Definition: tool_set_via_net.cpp:40
bool is_specific() override
Definition: tool_set_via_net.hpp:12
Where Tools and and documents meet.
Definition: core.hpp:232
To signal back to the core what the Tool did, a Tool returns a ToolResponse.
Definition: core.hpp:46
Definition: block.cpp:9
Common interface for all Tools.
Definition: core.hpp:133