MeshLib C Docs
Loading...
Searching...
No Matches
MRGcodeSave.h File Reference
#include <MRCMisc/common.h>
#include <MRCMisc/exports.h>

Go to the source code of this file.

Functions

MRC_API MR_expected_void_std_string * MR_GcodeSave_toGcode_std_filesystem_path (const MR_std_vector_std_string *gcode, const char *file, const char *file_end, MR_PassBy callback_pass_by, MR_std_function_bool_from_float *callback)
MRC_API MR_expected_void_std_string * MR_GcodeSave_toGcode_std_ostream (const MR_std_vector_std_string *gcode, MR_std_ostream *out, MR_PassBy callback_pass_by, MR_std_function_bool_from_float *callback)
MRC_API MR_expected_void_std_string * MR_GcodeSave_toAnySupportedFormat_3 (const MR_std_vector_std_string *gcode, const char *file, const char *file_end, MR_PassBy callback_pass_by, MR_std_function_bool_from_float *callback)
MRC_API MR_expected_void_std_string * MR_GcodeSave_toAnySupportedFormat_4 (const MR_std_vector_std_string *gcode, MR_std_ostream *out, const char *extension, const char *extension_end, MR_PassBy callback_pass_by, MR_std_function_bool_from_float *callback)

Function Documentation

◆ MR_GcodeSave_toAnySupportedFormat_3()

MRC_API MR_expected_void_std_string * MR_GcodeSave_toAnySupportedFormat_3 ( const MR_std_vector_std_string * gcode,
const char * file,
const char * file_end,
MR_PassBy callback_pass_by,
MR_std_function_bool_from_float * callback )

detects the format from file extension and saves G-code in it Generated from function MR::GcodeSave::toAnySupportedFormat. Parameter gcode can not be null. It is a single object. Parameter file is a UTF-8 encoded filesystem path. Parameter callback has a default argument: {}, pass MR_PassBy_DefaultArgument and a null pointer to use it. Never returns null. Returns an instance allocated on the heap! Must call MR_expected_void_std_string_Destroy() to free it when you're done using it.

◆ MR_GcodeSave_toAnySupportedFormat_4()

MRC_API MR_expected_void_std_string * MR_GcodeSave_toAnySupportedFormat_4 ( const MR_std_vector_std_string * gcode,
MR_std_ostream * out,
const char * extension,
const char * extension_end,
MR_PassBy callback_pass_by,
MR_std_function_bool_from_float * callback )

extension in *.ext format Generated from function MR::GcodeSave::toAnySupportedFormat. Parameter gcode can not be null. It is a single object. Parameter out can not be null. It is a single object. Parameter extension can not be null. If extension_end is null, then extension is assumed to be null-terminated. Parameter callback has a default argument: {}, pass MR_PassBy_DefaultArgument and a null pointer to use it. Never returns null. Returns an instance allocated on the heap! Must call MR_expected_void_std_string_Destroy() to free it when you're done using it.

◆ MR_GcodeSave_toGcode_std_filesystem_path()

MRC_API MR_expected_void_std_string * MR_GcodeSave_toGcode_std_filesystem_path ( const MR_std_vector_std_string * gcode,
const char * file,
const char * file_end,
MR_PassBy callback_pass_by,
MR_std_function_bool_from_float * callback )

saves G-code commands in *.gcode file (or any text file), one command per line Generated from function MR::GcodeSave::toGcode. Parameter gcode can not be null. It is a single object. Parameter file is a UTF-8 encoded filesystem path. Parameter callback has a default argument: {}, pass MR_PassBy_DefaultArgument and a null pointer to use it. Never returns null. Returns an instance allocated on the heap! Must call MR_expected_void_std_string_Destroy() to free it when you're done using it.

◆ MR_GcodeSave_toGcode_std_ostream()

MRC_API MR_expected_void_std_string * MR_GcodeSave_toGcode_std_ostream ( const MR_std_vector_std_string * gcode,
MR_std_ostream * out,
MR_PassBy callback_pass_by,
MR_std_function_bool_from_float * callback )

Generated from function MR::GcodeSave::toGcode. Parameter gcode can not be null. It is a single object. Parameter out can not be null. It is a single object. Parameter callback has a default argument: {}, pass MR_PassBy_DefaultArgument and a null pointer to use it. Never returns null. Returns an instance allocated on the heap! Must call MR_expected_void_std_string_Destroy() to free it when you're done using it.