2014-05-06 08:07:18 +00:00
|
|
|
#ifndef slic3r_PlaceholderParser_hpp_
|
|
|
|
#define slic3r_PlaceholderParser_hpp_
|
|
|
|
|
|
|
|
|
|
|
|
#include <myinit.h>
|
|
|
|
#include <map>
|
|
|
|
#include <string>
|
2014-06-13 13:32:11 +00:00
|
|
|
#include "PrintConfig.hpp"
|
2014-05-06 08:07:18 +00:00
|
|
|
|
|
|
|
|
|
|
|
namespace Slic3r {
|
|
|
|
|
|
|
|
class PlaceholderParser
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
std::map<std::string, std::string> _single;
|
|
|
|
std::map<std::string, std::string> _multiple;
|
|
|
|
|
|
|
|
PlaceholderParser();
|
|
|
|
~PlaceholderParser();
|
2014-06-13 13:32:11 +00:00
|
|
|
|
|
|
|
void apply_config(DynamicPrintConfig &config);
|
|
|
|
|
|
|
|
private:
|
|
|
|
template<class T>
|
|
|
|
void set_multiple_from_vector(
|
|
|
|
const std::string &key, ConfigOptionVector<T> &opt);
|
2014-05-06 08:07:18 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|