Decoupled a generic Config implementation from the PrintConfig definitions

This commit is contained in:
Alessandro Ranellucci 2013-12-21 16:15:41 +01:00
parent b2b67372ad
commit 56d4da2ac7
9 changed files with 200 additions and 154 deletions

View file

@ -2,12 +2,12 @@
%{
#include <myinit.h>
#include "Config.hpp"
#include "PrintConfig.hpp"
%}
%name{Slic3r::Config} class DynamicConfig {
DynamicConfig();
~DynamicConfig();
%name{Slic3r::Config} class DynamicPrintConfig {
DynamicPrintConfig();
~DynamicPrintConfig();
SV* get(t_config_option_key opt_key);
void set(t_config_option_key opt_key, SV* value);
void set_deserialize(t_config_option_key opt_key, std::string str);

View file

@ -1,7 +1,7 @@
std::vector<Points::size_type> T_STD_VECTOR_INT
t_config_option_key T_STD_STRING
DynamicConfig* O_OBJECT
DynamicPrintConfig* O_OBJECT
ZTable* O_OBJECT
TriangleMesh* O_OBJECT
Point* O_OBJECT

View file

@ -7,7 +7,7 @@
%typemap{SV*};
%typemap{AV*};
%typemap{Point*};
%typemap{DynamicConfig*};
%typemap{DynamicPrintConfig*};
%typemap{ExPolygon*};
%typemap{ExPolygonCollection*};
%typemap{Line*};