diff options
Diffstat (limited to 'GcodeProcessorLib/parsed_command.h')
-rw-r--r-- | GcodeProcessorLib/parsed_command.h | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/GcodeProcessorLib/parsed_command.h b/GcodeProcessorLib/parsed_command.h new file mode 100644 index 0000000..b10d5bb --- /dev/null +++ b/GcodeProcessorLib/parsed_command.h @@ -0,0 +1,44 @@ +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +// Gcode Processor Library +// +// Tools for parsing gcode and calculating printer state from parsed gcode commands. +// +// Copyright(C) 2020 - Brad Hochgesang +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +// This program is free software : you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published +// by the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program 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 Affero General Public License for more details. +// +// +// You can contact the author at the following email address: +// FormerLurker@pm.me +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +#ifndef PARSED_COMMAND_H +#define PARSED_COMMAND_H +#include <string> +#include <vector> +#include "parsed_command_parameter.h" + +struct parsed_command +{ +public: + parsed_command(); + std::string command; + std::string gcode; + std::string comment; + bool is_empty; + bool is_known_command; + std::vector<parsed_command_parameter> parameters; + void clear(); + std::string to_string(); + std::string rewrite_gcode_string(); +}; + +#endif
\ No newline at end of file |