2014-05-06 08:07:18 +00:00
|
|
|
%module{Slic3r::XS};
|
|
|
|
|
|
|
|
%{
|
|
|
|
#include <myinit.h>
|
|
|
|
#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);
|
|
|
|
std::string process(std::string str) const;
|
2014-05-06 08:07:18 +00:00
|
|
|
};
|