2018-07-08 12:32:48 +00:00
|
|
|
#include "OctoPrint.hpp"
|
|
|
|
#include "Duet.hpp"
|
|
|
|
|
|
|
|
#include "libslic3r/PrintConfig.hpp"
|
|
|
|
|
|
|
|
namespace Slic3r {
|
|
|
|
|
|
|
|
|
2018-08-21 09:10:32 +00:00
|
|
|
PrintHost::~PrintHost() {}
|
|
|
|
|
|
|
|
PrintHost* PrintHost::get_print_host(DynamicPrintConfig *config)
|
2018-07-08 12:32:48 +00:00
|
|
|
{
|
|
|
|
PrintHostType kind = config->option<ConfigOptionEnum<PrintHostType>>("host_type")->value;
|
|
|
|
if (kind == htOctoPrint) {
|
|
|
|
return new OctoPrint(config);
|
|
|
|
} else if (kind == htDuet) {
|
|
|
|
return new Duet(config);
|
|
|
|
}
|
2018-08-21 09:10:32 +00:00
|
|
|
return nullptr;
|
2018-07-08 12:32:48 +00:00
|
|
|
}
|
|
|
|
|
2018-08-21 09:10:32 +00:00
|
|
|
|
2018-07-08 12:32:48 +00:00
|
|
|
}
|