BlinkenArea - GitList
Repositories
Blog
Wiki
dxfngc
Code
Commits
Branches
Tags
Search
Tree:
e231ced
Branches
Tags
master
dxfngc
src
cmdparser.h
configuration of precision
Stefan Schuermans
commited
e231ced
at 2013-01-26 18:55:56
cmdparser.h
Blame
History
Raw
/* drawing (DXF) to G-code (NGC) converter * Copyright 2013 Stefan Schuermans <stefan@schuermans.info> * Copyleft: CC-BY-SA http://creativecommons.org/licenses/by-sa/3.0/ */ #ifndef CMDPARSER_H #define CMDPARSER_H #include <iostream> #include <string> #include "gcode.h" #include "drawing.h" #include "settings.h" /// command parser class CmdParser { public: /** * @brief process cmd command * @param[in] strm stream to read command arguments from * @return if processing command was successful */ bool procCmd_cmd(std::istream &strm); /** * @brief process cut command * @param[in] strm stream to read command arguments from * @return if processing command was successful */ bool procCmd_cut(std::istream &strm); /** * @brief process read_dxf command * @param[in] strm stream to read command arguments from * @return if processing command was successful */ bool procCmd_read_dxf(std::istream &strm); /** * @brief process set_base_z command * @param[in] strm stream to read command arguments from * @return if processing command was successful */ bool procCmd_set_base_z(std::istream &strm); /** * @brief process set_cut_z command * @param[in] strm stream to read command arguments from * @return if processing command was successful */ bool procCmd_set_cut_z(std::istream &strm); /** * @brief process set_cut_z_step command * @param[in] strm stream to read command arguments from * @return if processing command was successful */ bool procCmd_set_cut_z_step(std::istream &strm); /** * @brief process set_feed_drill command * @param[in] strm stream to read command arguments from * @return if processing command was successful */ bool procCmd_set_feed_drill(std::istream &strm); /** * @brief process set_feed_mill command * @param[in] strm stream to read command arguments from * @return if processing command was successful */ bool procCmd_set_feed_mill(std::istream &strm); /** * @brief process set_move_z command * @param[in] strm stream to read command arguments from * @return if processing command was successful */ bool procCmd_set_move_z(std::istream &strm); /** * @brief process set_precision command * @param[in] strm stream to read command arguments from * @return if processing command was successful */ bool procCmd_set_precision(std::istream &strm); /** * @brief process set_tool_diameter command * @param[in] strm stream to read command arguments from * @return if processing command was successful */ bool procCmd_set_tool_diameter(std::istream &strm); /** * @brief process write_ngc command * @param[in] strm stream to read command arguments from * @return if processing command was successful */ bool procCmd_write_ngc(std::istream &strm); /** * @brief process command from line of text * @param[in] strLine line containing command to process * @return if processing command was successful */ bool procLine(const std::string &strLine); /** * @brief process commands from a stream * @param[in] strm stream to process * @param[in] if processing stream was successful * @return if processing commands was successful */ bool procStream(std::istream &strm); /** * @brief process commands from a file * @param[in] strFileName name of file to process * @param[in] if processing the file was successful * @return if processing commands was successful */ bool procFile(const std::string &strFileName); std::string mBaseDir; ///< base directory taken from name of file Settings mSettings; ///< settings for G-code generation Drawing mDrawing; ///< current drawing GCode mGCode; ///< G-code created so far }; #endif // #ifndef CMDPARSER_H