From fe7105ff3264be48d380a255081e6819bae6e6c2 Mon Sep 17 00:00:00 2001 From: Joseph Lenox Date: Mon, 5 Apr 2021 00:03:59 -0500 Subject: Initial cut to add an OutputFormat enumeration for SLA printing. --- src/libslic3r/Config.hpp | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) (limited to 'src/libslic3r/Config.hpp') diff --git a/src/libslic3r/Config.hpp b/src/libslic3r/Config.hpp index e9735fd19..52c057c76 100644 --- a/src/libslic3r/Config.hpp +++ b/src/libslic3r/Config.hpp @@ -186,6 +186,31 @@ inline PrinterTechnology operator&=(PrinterTechnology& a, PrinterTechnology b) { a = a & b; return a; } +/// +enum OutputFormat : uint16_t +{ + ofMaskedCWS = 1 << 0, + ofSL1 = 1 << 1, + ofGCode = 1 << 2, + ofUnknown = 1 << 15 +}; + +inline OutputFormat operator|(OutputFormat a, OutputFormat b) { + return static_cast(static_cast(a) | static_cast(b)); +} +inline OutputFormat operator&(OutputFormat a, OutputFormat b) { + return static_cast(static_cast(a)& static_cast(b)); +} +inline OutputFormat operator|=(OutputFormat& a, OutputFormat b) { + a = a | b; return a; +} +inline OutputFormat operator&=(OutputFormat& a, OutputFormat b) { + a = a & b; return a; +} + + + + // A generic value of a configuration option. class ConfigOption { public: -- cgit v1.2.3