| 1 | #ifndef _BGCODE_CONVERT_HPP_ |
| 2 | #define _BGCODE_CONVERT_HPP_ |
| 3 | |
| 4 | #include "convert/export.h" |
| 5 | #include "binarize/binarize.hpp" |
| 6 | |
| 7 | namespace bgcode { namespace convert { |
| 8 | |
| 9 | // Converts the gcode file contained into src_file from ascii (using the parameters specified with the given config) to binary format |
| 10 | // and save the results into dst_file, |
| 11 | extern BGCODE_CONVERT_EXPORT core::EResult from_ascii_to_binary(FILE& src_file, FILE& dst_file, const binarize::BinarizerConfig& config); |
| 12 | |
| 13 | // Converts the gcode file contained into src_file from binary to ascii format and save the results into dst_file |
| 14 | extern BGCODE_CONVERT_EXPORT core::EResult from_binary_to_ascii(FILE& src_file, FILE& dst_file, bool verify_checksum); |
| 15 | |
| 16 | }} // bgcode::core |
| 17 | |
| 18 | #endif // _BGCODE_CONVERT_HPP_ |