Debian Codegraph @

src/LibBGCode/binarize/meatpack.hpp

raw symbols SCIP
1 #cxx . . $ `<file>/src/LibBGCode/binarize/meatpack.hpp`/ifndef _BGCODE_BINARIZE_MEATPACK_HPP_
2 #define _BGCODE_BINARIZE_MEATPACK_HPP_cxx . . $ `src/LibBGCode/binarize/meatpack.hpp:2:9`!
3
4 #include <cstdint>
5 #include <vector>
6 #include <string>
7 #include <array>
8
9 //
10 // Adaptation of MeatPack G-Code Compression taken from:
11 // https://github.com/scottmudge/OctoPrint-MeatPack/blob/master/OctoPrint_MeatPack/meatpack.py
12 // https://github.com/bubnikv/OctoPrint-MeatPack/blob/master/OctoPrint_MeatPack/meatpack.py
13 // https://github.com/scottmudge/Prusa-Firmware-MeatPack/blob/MK3_sm_MeatPack/Firmware/meatpack.h
14 // https://github.com/scottmudge/Prusa-Firmware-MeatPack/blob/MK3_sm_MeatPack/Firmware/meatpack.cpp
15 //
16
17 namespace MeatPackcxx . . $ MeatPack/ {
18
19 static constexpr const uint8_tcxx . . $ uint8_t# Flag_OmitWhitespacescxx . . $ MeatPack/Flag_OmitWhitespaces.{ 0x01 };
20 static constexpr const uint8_tcxx . . $ uint8_t# Flag_RemoveCommentscxx . . $ MeatPack/Flag_RemoveComments.{ 0x02 };
21
22 class MPBinarizercxx . . $ MeatPack/MPBinarizer#
23 {
24 public:
25 explicit MPBinarizercxx . . $ MeatPack/MPBinarizer#MPBinarizer(ac50b47256ae7414).(uint8_tcxx . . $ uint8_t# flags = 0);
26
27 void initializecxx . . $ MeatPack/MPBinarizer#initialize(d8e103f392b62d52).(stdcxx . . $ std/::vectorcxx . . $ std/vector#<uint8_tcxx . . $ uint8_t#>& dst);
28 void finalizecxx . . $ MeatPack/MPBinarizer#finalize(d8e103f392b62d52).(stdcxx . . $ std/::vectorcxx . . $ std/vector#<uint8_tcxx . . $ uint8_t#>& dst);
29
30 void binarize_linecxx . . $ MeatPack/MPBinarizer#binarize_line(9db05115f854ad40).(const stdcxx . . $ std/::stringcxx . . $ std/string#& line, stdcxx . . $ std/::vectorcxx . . $ std/vector#<uint8_tcxx . . $ uint8_t#>& dst);
31
32 private:
33 unsigned char m_flagscxx . . $ MeatPack/MPBinarizer#m_flags.{ 0 };
34 bool m_binarizingcxx . . $ MeatPack/MPBinarizer#m_binarizing.{ false };
35
36 struct LookupTablescxx . . $ MeatPack/MPBinarizer#LookupTables#
37 {
38 stdcxx . . $ std/::arraycxx . . $ std/array#<uint8_tcxx . . $ uint8_t#, 256> packablecxx . . $ MeatPack/MPBinarizer#LookupTables#packable.;
39 stdcxx . . $ std/::arraycxx . . $ std/array#<uint8_tcxx . . $ uint8_t#, 256> valuecxx . . $ MeatPack/MPBinarizer#LookupTables#value.;
40 bool initializedcxx . . $ MeatPack/MPBinarizer#LookupTables#initialized.;
41 unsigned char flagscxx . . $ MeatPack/MPBinarizer#LookupTables#flags.;
42 };
43
44 static LookupTablescxx . . $ MeatPack/MPBinarizer#LookupTables# s_lookup_tablescxx . . $ MeatPack/MPBinarizer#s_lookup_tables.;
45
46 void append_commandcxx . . $ MeatPack/MPBinarizer#append_command(985d2bc0ea417148).(unsigned char cmd, stdcxx . . $ std/::vectorcxx . . $ std/vector#<uint8_tcxx . . $ uint8_t#>& dst);
47 void initialize_lookup_tablescxx . . $ MeatPack/MPBinarizer#initialize_lookup_tables(49f6e7a06ebc5aa8).();
48 };
49
50 extern void unbinarizecxx . . $ MeatPack/unbinarize(66c8f0577a1d24f9).(const stdcxx . . $ std/::vectorcxx . . $ std/vector#<uint8_tcxx . . $ uint8_t#>& src, stdcxx . . $ std/::stringcxx . . $ std/string#& dst);
51
52 } // namespace MeatPack
53
54 #endif // _BGCODE_BINARIZE_MEATPACK_HPP_