OrcaSlicer/xs/src/libslic3r/PlaceholderParser.hpp
2014-08-03 19:42:29 +02:00

32 lines
566 B
C++

#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