Translate PlaceholderParser::apply_config to C++.

This commit is contained in:
Y. Sapir 2014-06-13 16:32:11 +03:00 committed by Alessandro Ranellucci
parent e88545b966
commit a837e26f51
4 changed files with 109 additions and 31 deletions

View file

@ -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]; %};