mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-25 23:54:00 -06:00
Moved C++ code into new libslic3r directory
This commit is contained in:
parent
b8676241e0
commit
6adc3477c9
84 changed files with 122 additions and 111 deletions
32
xs/src/libslic3r/PlaceholderParser.hpp
Normal file
32
xs/src/libslic3r/PlaceholderParser.hpp
Normal file
|
@ -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
|
Loading…
Add table
Add a link
Reference in a new issue