mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-06-03 02:22:46 +00:00
Refactoring in PlaceholderParser
This commit is contained in:
@@ -5,6 +5,7 @@
|
||||
#include <myinit.h>
|
||||
#include <map>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include "PrintConfig.hpp"
|
||||
|
||||
|
||||
@@ -20,12 +21,8 @@ class PlaceholderParser
|
||||
void update_timestamp();
|
||||
void apply_config(DynamicPrintConfig &config);
|
||||
void set(const std::string &key, const std::string &value);
|
||||
|
||||
private:
|
||||
template<class T>
|
||||
void set_multiple_from_vector(
|
||||
const std::string &key, ConfigOptionVector<T> &opt);
|
||||
std::string _int_to_string(int value) const;
|
||||
void set(const std::string &key, int value);
|
||||
void set(const std::string &key, const std::vector<std::string> &values);
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user