Commit | Line | Data |
---|---|---|
14ecdbd7 AW |
1 | /* |
2 | this file is part of smoothie (http://smoothieware.org/). the motion control part is heavily based on grbl (https://github.com/simen/grbl). | |
3 | smoothie is free software: you can redistribute it and/or modify it under the terms of the gnu general public license as published by the free software foundation, either version 3 of the license, or (at your option) any later version. | |
4 | smoothie is distributed in the hope that it will be useful, but without any warranty; without even the implied warranty of merchantability or fitness for a particular purpose. see the gnu general public license for more details. | |
5 | you should have received a copy of the gnu general public license along with smoothie. if not, see <http://www.gnu.org/licenses/>. | |
6 | */ | |
7 | ||
92031952 L |
8 | #ifndef TOOLMANAGER_H |
9 | #define TOOLMANAGER_H | |
14ecdbd7 AW |
10 | |
11 | using namespace std; | |
12 | #include <vector> | |
13 | ||
14 | #include "Tool.h" | |
15 | ||
92031952 | 16 | class ToolManager : public Module { |
14ecdbd7 | 17 | public: |
92031952 | 18 | ToolManager(); |
14ecdbd7 AW |
19 | |
20 | void on_module_loaded(); | |
8adf2390 | 21 | void on_gcode_received(void*); |
f4a68aec | 22 | void on_config_reload(void*); |
14ecdbd7 AW |
23 | void add_tool(Tool* tool_to_add); |
24 | ||
25 | vector<Tool*> tools; | |
8adf2390 L |
26 | |
27 | int active_tool; | |
f4a68aec | 28 | bool return_error_on_unhandled_gcode; |
14ecdbd7 AW |
29 | }; |
30 | ||
31 | ||
32 | ||
33 | #endif |