GCode Processor
Public Member Functions | Private Attributes | List of all members
GCodeProcessor Class Reference

Class to read in and process a .gcode file. More...

#include <GCodeProcessor.h>

Public Member Functions

 GCodeProcessor (CommandLineArguments &&cmd_line_args)
 Constructor. More...
 
 ~GCodeProcessor ()=default
 Default destructor.
 
 GCodeProcessor (const GCodeProcessor &)=delete
 Deleted copy constructor.
 
 GCodeProcessor (GCodeProcessor &&)=delete
 Deleted move constructor.
 
GCodeProcessoroperator= (const GCodeProcessor &)=delete
 Deleted copy assignment operator.
 
GCodeProcessoroperator= (GCodeProcessor &&)=delete
 Deleted move assignment operator.
 
void process ()
 Process the input file.
 

Private Attributes

const std::string InputFileName_
 The input .gcode file.
 
std::unique_ptr< GCodeLineEntryStackInputEntriesStack_
 The 3-element .gcode line entry stack.
 

Detailed Description

Class to read in and process a .gcode file.

Todo:
The processor is assuming that only one extruder exists! That may not be the case: multiple stacks may be required to properly parse the file.

Constructor & Destructor Documentation

GCodeProcessor ( CommandLineArguments &&  cmd_line_args)
explicit

Constructor.

Reads the input file in and stores the lines in a std::vector.

Parameters
cmd_line_argsParsed command line arguments.

The documentation for this class was generated from the following files: