2014-05-06 08:07:18 +00:00
|
|
|
%module{Slic3r::XS};
|
|
|
|
|
|
|
|
%{
|
2015-12-07 23:39:54 +00:00
|
|
|
#include <xsinit.h>
|
2014-05-06 08:07:18 +00:00
|
|
|
#include <vector>
|
2014-08-03 17:42:29 +00:00
|
|
|
#include "libslic3r/PlaceholderParser.hpp"
|
2014-05-06 08:07:18 +00:00
|
|
|
%}
|
|
|
|
|
|
|
|
%name{Slic3r::GCode::PlaceholderParser} class PlaceholderParser {
|
2015-07-01 15:56:38 +00:00
|
|
|
PlaceholderParser();
|
2014-05-06 08:07:18 +00:00
|
|
|
~PlaceholderParser();
|
2015-07-01 17:35:22 +00:00
|
|
|
Clone<PlaceholderParser> clone()
|
|
|
|
%code{% RETVAL = THIS; %};
|
2014-11-09 19:41:27 +00:00
|
|
|
|
|
|
|
void update_timestamp();
|
2015-07-01 15:56:38 +00:00
|
|
|
void apply_env_variables();
|
2014-06-13 13:32:11 +00:00
|
|
|
void apply_config(DynamicPrintConfig *config)
|
2014-11-09 19:41:27 +00:00
|
|
|
%code%{ THIS->apply_config(*config); %};
|
|
|
|
void set(std::string key, std::string value);
|
2015-07-01 17:35:22 +00:00
|
|
|
%name{set_multiple} void set(std::string key, std::vector<std::string> values);
|
2017-07-31 13:42:55 +00:00
|
|
|
std::string process(std::string str) const
|
|
|
|
%code%{ RETVAL = THIS->process(str, 0); %};
|
2014-05-06 08:07:18 +00:00
|
|
|
};
|