Welcome to mirror list, hosted at ThFree Co, Russian Federation.

PrintHost.cpp « Utils « slic3r « src - github.com/prusa3d/PrusaSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: dd72bae40fe7f439f7e40fbef7123a6a292fe3e3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#include "OctoPrint.hpp"
#include "Duet.hpp"

#include "libslic3r/PrintConfig.hpp"

namespace Slic3r {


PrintHost::~PrintHost() {}

PrintHost* PrintHost::get_print_host(DynamicPrintConfig *config)
{
	PrintHostType kind = config->option<ConfigOptionEnum<PrintHostType>>("host_type")->value;
	if (kind == htOctoPrint) {
		return new OctoPrint(config);
	} else if (kind == htDuet) {
		return new Duet(config);
	}
	return nullptr;
}


}