GCodeAPI.GCodeReader Class Reference

This class provides translation of *.gcode text file to IGCode objects. More...

Public Member Functions

 GCodeReader (byte[] file)
 Constructs a new GCodeReader from a byte array of g-code text file. More...
 
 GCodeReader (String path)
 Constructs a new GCodeReader from a text file. More...
 
 GCodeReader (Stream file)
 Constructs a new GCodeReader from a Stream object of g-code text file. More...
 

Static Public Member Functions

static IGCode Read (string line)
 Translates and returns an IGCode object of specified string. More...
 

Static Protected Member Functions

static double getValue (string[] tags, string flag)
 

Properties

GCodeCollector Code [get]
 Returns the collection of the retrieved and translation IGCode objects. More...
 

Detailed Description

This class provides translation of *.gcode text file to IGCode objects.

Constructor & Destructor Documentation

◆ GCodeReader() [1/3]

GCodeAPI.GCodeReader.GCodeReader ( byte []  file)

Constructs a new GCodeReader from a byte array of g-code text file.

Parameters
filebyte array of g-code text file

◆ GCodeReader() [2/3]

GCodeAPI.GCodeReader.GCodeReader ( String  path)

Constructs a new GCodeReader from a text file.

Parameters
pathPath of text file

◆ GCodeReader() [3/3]

GCodeAPI.GCodeReader.GCodeReader ( Stream  file)

Constructs a new GCodeReader from a Stream object of g-code text file.

Parameters
fileStream object of g-code text file

Member Function Documentation

◆ Read()

static IGCode GCodeAPI.GCodeReader.Read ( string  line)
static

Translates and returns an IGCode object of specified string.

Parameters
lineString to be translated
Returns

Property Documentation

◆ Code

GCodeCollector GCodeAPI.GCodeReader.Code
get

Returns the collection of the retrieved and translation IGCode objects.


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