|
OOFEM 3.0
|
The GCodeParser class is used to parse G-code files. More...
#include <GCodeParser.h>
Public Member Functions | |
| std::vector< GCodeCommand > | parseFile (const std::string &filename) |
| Parses a file and returns a vector of GCodeCommand objects. | |
Private Member Functions | |
| void | removeComments (std::string &line) |
| Removes comments from a line of G-code. | |
| GCodeCommand | parseLine (const std::string &line) |
| Parses a line of G-code and returns a GCodeCommand object. | |
The GCodeParser class is used to parse G-code files.
Definition at line 15 of file GCodeParser.h.
|
inline |
Parses a file and returns a vector of GCodeCommand objects.
| filename | The name of the file to parse. |
Definition at line 23 of file GCodeParser.h.
References parseLine(), and removeComments().
Referenced by oofem::AdditiveManufacturingProblem::initializeFrom().
|
inlineprivate |
Parses a line of G-code and returns a GCodeCommand object.
| line | The line of G-code to parse. |
Definition at line 69 of file GCodeParser.h.
References GCodeCommand::addParameter(), and GCodeCommand::setCode().
Referenced by parseFile().
|
inlineprivate |
Removes comments from a line of G-code.
| line | The line of G-code to remove comments from. |
Definition at line 55 of file GCodeParser.h.
Referenced by parseFile().