forked from prusa3d/libbgcode
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconvert.hpp
More file actions
18 lines (12 loc) · 758 Bytes
/
convert.hpp
File metadata and controls
18 lines (12 loc) · 758 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#ifndef _BGCODE_CONVERT_HPP_
#define _BGCODE_CONVERT_HPP_
#include "convert/export.h"
#include "binarize/binarize.hpp"
namespace bgcode { namespace convert {
// Converts the gcode file contained into src_file from ascii (using the parameters specified with the given config) to binary format
// and save the results into dst_file,
extern BGCODE_CONVERT_EXPORT core::EResult from_ascii_to_binary(FILE& src_file, FILE& dst_file, const binarize::BinarizerConfig& config);
// Converts the gcode file contained into src_file from binary to ascii format and save the results into dst_file
extern BGCODE_CONVERT_EXPORT core::EResult from_binary_to_ascii(FILE& src_file, FILE& dst_file, bool verify_checksum);
}} // bgcode::core
#endif // _BGCODE_CONVERT_HPP_