Refactoring of StaticPrintConfig & derived classes:

1) Using boost::preprocessor to reduce code duplicities when defining
   new configuration values.
2) Implemented static hash() and operator== on StaticPrintConfig derived
   classes to support hash tables of instances thereof.
This commit is contained in:
Vojtech Bubnik 2021-04-26 18:37:10 +02:00
parent 5783cc62fb
commit d1cfdcb49e
7 changed files with 619 additions and 888 deletions

View file

@ -108,7 +108,7 @@
std::string get_extrusion_axis()
%code{%
if (GCodeConfig* config = dynamic_cast<GCodeConfig*>(THIS)) {
RETVAL = config->get_extrusion_axis();
RETVAL = get_extrusion_axis(*config);
} else {
CONFESS("This StaticConfig object does not provide get_extrusion_axis()");
}