improved error response of ToolManager
[clinton/Smoothieware.git] / src / modules / tools / toolmanager / ToolManager.h
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
8 #ifndef TOOLMANAGER_H
9 #define TOOLMANAGER_H
10
11 using namespace std;
12 #include <vector>
13
14 #include "Tool.h"
15
16 class ToolManager : public Module {
17 public:
18 ToolManager();
19
20 void on_module_loaded();
21 void on_gcode_received(void*);
22 void on_config_reload(void*);
23 void add_tool(Tool* tool_to_add);
24
25 vector<Tool*> tools;
26
27 int active_tool;
28 bool return_error_on_unhandled_gcode;
29 };
30
31
32
33 #endif