mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-10-20 07:11:12 -06:00
Translate PlaceholderParser::apply_config to C++.
This commit is contained in:
parent
e88545b966
commit
a837e26f51
4 changed files with 109 additions and 31 deletions
|
@ -10,10 +10,11 @@
|
|||
%name{_new} PlaceholderParser();
|
||||
~PlaceholderParser();
|
||||
|
||||
void apply_config(DynamicPrintConfig *config)
|
||||
%code%{ THIS->apply_config(*config); %};
|
||||
|
||||
void _single_set(std::string k, std::string v)
|
||||
%code%{ THIS->_single[k] = v; %};
|
||||
void _multiple_set(std::string k, std::string v)
|
||||
%code%{ THIS->_multiple[k] = v; %};
|
||||
|
||||
std::string _single_get(std::string k)
|
||||
%code%{ RETVAL = THIS->_single[k]; %};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue