diff options
Diffstat (limited to 'xs/src/libslic3r/PlaceholderParser.hpp')
-rw-r--r-- | xs/src/libslic3r/PlaceholderParser.hpp | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/xs/src/libslic3r/PlaceholderParser.hpp b/xs/src/libslic3r/PlaceholderParser.hpp new file mode 100644 index 000000000..e69d6ed93 --- /dev/null +++ b/xs/src/libslic3r/PlaceholderParser.hpp @@ -0,0 +1,32 @@ +#ifndef slic3r_PlaceholderParser_hpp_ +#define slic3r_PlaceholderParser_hpp_ + + +#include <myinit.h> +#include <map> +#include <string> +#include "PrintConfig.hpp" + + +namespace Slic3r { + +class PlaceholderParser +{ + public: + std::map<std::string, std::string> _single; + std::map<std::string, std::string> _multiple; + + PlaceholderParser(); + ~PlaceholderParser(); + + void apply_config(DynamicPrintConfig &config); + + private: + template<class T> + void set_multiple_from_vector( + const std::string &key, ConfigOptionVector<T> &opt); +}; + +} + +#endif |