2014-11-26 21:30:25 +00:00
|
|
|
%module{Slic3r::XS};
|
|
|
|
|
|
|
|
#ifdef BOOST_LIBS
|
|
|
|
|
|
|
|
%{
|
|
|
|
#include <myinit.h>
|
|
|
|
#include "libslic3r/GCodeSender.hpp"
|
|
|
|
%}
|
|
|
|
|
|
|
|
%name{Slic3r::GCode::Sender} class GCodeSender {
|
2014-12-31 18:10:46 +00:00
|
|
|
GCodeSender();
|
2014-11-26 21:30:25 +00:00
|
|
|
~GCodeSender();
|
|
|
|
|
2014-12-31 18:10:46 +00:00
|
|
|
bool connect(std::string port, unsigned int baud_rate);
|
|
|
|
void disconnect();
|
2014-12-27 21:57:20 +00:00
|
|
|
bool is_connected() const;
|
|
|
|
int queue_size() const;
|
2014-11-26 21:30:25 +00:00
|
|
|
void send(std::string s);
|
2015-01-03 22:25:55 +00:00
|
|
|
void pause_queue();
|
|
|
|
void resume_queue();
|
2014-11-26 21:30:25 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|