diff options
author | Alessandro Ranellucci <aar@cpan.org> | 2014-11-09 14:25:59 +0300 |
---|---|---|
committer | Alessandro Ranellucci <aar@cpan.org> | 2014-11-09 14:25:59 +0300 |
commit | 3e4c57216412504e63154b6887bf14f89f4b559f (patch) | |
tree | f10ff527410e38394adebe4190a5a9467bc7ddf6 /xs/xsp/Config.xsp | |
parent | 6b4015f9accdefc544d14ba5c31a4af7f724479b (diff) |
Ported some methods including add_model_object() and apply_config() to XS
Diffstat (limited to 'xs/xsp/Config.xsp')
-rw-r--r-- | xs/xsp/Config.xsp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/xs/xsp/Config.xsp b/xs/xsp/Config.xsp index b11533e36..1d410062b 100644 --- a/xs/xsp/Config.xsp +++ b/xs/xsp/Config.xsp @@ -14,12 +14,15 @@ SV* get_at(t_config_option_key opt_key, int i); bool set(t_config_option_key opt_key, SV* value); bool set_deserialize(t_config_option_key opt_key, SV* str); + void set_ifndef(t_config_option_key opt_key, SV* value, bool deserialize = false); std::string serialize(t_config_option_key opt_key); double get_abs_value(t_config_option_key opt_key); %name{get_abs_value_over} double get_abs_value(t_config_option_key opt_key, double ratio_over); void apply(DynamicPrintConfig* other) %code{% THIS->apply(*other, true); %}; + std::vector<std::string> diff(DynamicPrintConfig* other) + %code{% RETVAL = THIS->diff(*other); %}; void apply_static(FullPrintConfig* other) %code{% THIS->apply(*other, true); %}; std::vector<std::string> get_keys() @@ -37,6 +40,7 @@ SV* get_at(t_config_option_key opt_key, int i); bool set(t_config_option_key opt_key, SV* value); bool set_deserialize(t_config_option_key opt_key, SV* str); + void set_ifndef(t_config_option_key opt_key, SV* value, bool deserialize = false); std::string serialize(t_config_option_key opt_key); double get_abs_value(t_config_option_key opt_key); %name{get_abs_value_over} @@ -58,6 +62,7 @@ SV* get_at(t_config_option_key opt_key, int i); bool set(t_config_option_key opt_key, SV* value); bool set_deserialize(t_config_option_key opt_key, SV* str); + void set_ifndef(t_config_option_key opt_key, SV* value, bool deserialize = false); std::string serialize(t_config_option_key opt_key); double get_abs_value(t_config_option_key opt_key); %name{get_abs_value_over} @@ -77,6 +82,7 @@ SV* get_at(t_config_option_key opt_key, int i); bool set(t_config_option_key opt_key, SV* value); bool set_deserialize(t_config_option_key opt_key, SV* str); + void set_ifndef(t_config_option_key opt_key, SV* value, bool deserialize = false); std::string serialize(t_config_option_key opt_key); double get_abs_value(t_config_option_key opt_key); %name{get_abs_value_over} @@ -98,6 +104,7 @@ SV* get_at(t_config_option_key opt_key, int i); bool set(t_config_option_key opt_key, SV* value); bool set_deserialize(t_config_option_key opt_key, SV* str); + void set_ifndef(t_config_option_key opt_key, SV* value, bool deserialize = false); std::string serialize(t_config_option_key opt_key); double get_abs_value(t_config_option_key opt_key); %name{get_abs_value_over} @@ -119,6 +126,7 @@ SV* get_at(t_config_option_key opt_key, int i); bool set(t_config_option_key opt_key, SV* value); bool set_deserialize(t_config_option_key opt_key, SV* str); + void set_ifndef(t_config_option_key opt_key, SV* value, bool deserialize = false); std::string serialize(t_config_option_key opt_key); double get_abs_value(t_config_option_key opt_key); %name{get_abs_value_over} |