2014-05-06 08:07:18 +00:00
|
|
|
#ifndef slic3r_PlaceholderParser_hpp_
|
|
|
|
#define slic3r_PlaceholderParser_hpp_
|
|
|
|
|
|
|
|
|
|
|
|
#include <myinit.h>
|
|
|
|
#include <map>
|
|
|
|
#include <string>
|
2015-05-02 19:43:22 +00:00
|
|
|
#include <vector>
|
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();
|
2014-11-09 19:41:27 +00:00
|
|
|
void update_timestamp();
|
2014-06-13 13:32:11 +00:00
|
|
|
void apply_config(DynamicPrintConfig &config);
|
2015-07-01 15:56:38 +00:00
|
|
|
void apply_env_variables();
|
2014-11-09 19:41:27 +00:00
|
|
|
void set(const std::string &key, const std::string &value);
|
2015-05-02 19:43:22 +00:00
|
|
|
void set(const std::string &key, int value);
|
|
|
|
void set(const std::string &key, const std::vector<std::string> &values);
|
2014-05-06 08:07:18 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|