![]() |
Prusa Slicer 2.6.0
|
#include <src/libslic3r/PlaceholderParser.hpp>
Collaboration diagram for Slic3r::PlaceholderParser:Classes | |
| struct | ContextData |
Public Member Functions | |
| PlaceholderParser (const DynamicConfig *external_config=nullptr) | |
| void | clear_config () |
| std::vector< std::string > | config_diff (const DynamicPrintConfig &rhs) |
| bool | apply_config (const DynamicPrintConfig &config) |
| void | apply_config (DynamicPrintConfig &&config) |
| void | apply_only (const DynamicPrintConfig &config, const std::vector< std::string > &keys) |
| void | apply_env_variables () |
| void | set (const std::string &key, const std::string &value) |
| void | set (const std::string &key, std::string_view value) |
| void | set (const std::string &key, const char *value) |
| void | set (const std::string &key, int value) |
| void | set (const std::string &key, unsigned int value) |
| void | set (const std::string &key, bool value) |
| void | set (const std::string &key, double value) |
| void | set (const std::string &key, const std::vector< std::string > &values) |
| void | set (const std::string &key, ConfigOption *opt) |
| DynamicConfig & | config_writable () |
| const DynamicConfig & | config () const |
| const ConfigOption * | option (const std::string &key) const |
| const DynamicConfig * | external_config () const |
| std::string | process (const std::string &templ, unsigned int current_extruder_id, const DynamicConfig *config_override, DynamicConfig *config_outputs, ContextData *context) const |
| std::string | process (const std::string &templ, unsigned int current_extruder_id=0, const DynamicConfig *config_override=nullptr, ContextData *context=nullptr) const |
| void | update_timestamp () |
Static Public Member Functions | |
| static bool | evaluate_boolean_expression (const std::string &templ, const DynamicConfig &config, const DynamicConfig *config_override=nullptr) |
| static void | update_timestamp (DynamicConfig &config) |
Private Attributes | |
| DynamicConfig | m_config |
| const DynamicConfig * | m_external_config |
| struct Slic3r::PlaceholderParser::ContextData |
Collaboration diagram for Slic3r::PlaceholderParser::ContextData:| Class Members | ||
|---|---|---|
| unique_ptr< DynamicConfig > | global_config | |
| mt19937 | rng | |
| Slic3r::PlaceholderParser::PlaceholderParser | ( | const DynamicConfig * | external_config = nullptr | ) |
References apply_env_variables(), set(), and update_timestamp().
Here is the call graph for this function:| bool Slic3r::PlaceholderParser::apply_config | ( | const DynamicPrintConfig & | config | ) |
References Slic3r::ConfigOption::clone(), Slic3r::DynamicConfig::keys(), m_config, Slic3r::ConfigBase::option(), Slic3r::opts_equal(), and set().
Referenced by Slic3r::SLAPrint::apply().
Here is the call graph for this function:
Here is the caller graph for this function:| void Slic3r::PlaceholderParser::apply_config | ( | DynamicPrintConfig && | config | ) |
| void Slic3r::PlaceholderParser::apply_env_variables | ( | ) |
References environ, and set().
Referenced by PlaceholderParser().
Here is the call graph for this function:
Here is the caller graph for this function:| void Slic3r::PlaceholderParser::apply_only | ( | const DynamicPrintConfig & | config, |
| const std::vector< std::string > & | keys | ||
| ) |
References Slic3r::ConfigOption::clone(), Slic3r::ConfigBase::option(), and set().
Here is the call graph for this function:
|
inline |
|
inline |
References m_config.
Referenced by evaluate_boolean_expression(), process(), and update_timestamp().
Here is the caller graph for this function:| std::vector< std::string > Slic3r::PlaceholderParser::config_diff | ( | const DynamicPrintConfig & | rhs | ) |
References Slic3r::DynamicConfig::keys(), m_config, and Slic3r::opts_equal().
Referenced by Slic3r::SLAPrint::apply().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
References m_config.
Referenced by Slic3r::GCode::_do_export().
Here is the caller graph for this function:
|
static |
References Slic3r::client::MyContext::config, config(), Slic3r::client::MyContext::config_override, Slic3r::client::MyContext::just_boolean_expression, and Slic3r::process_macro().
Referenced by Slic3r::is_compatible_with_print(), and Slic3r::is_compatible_with_printer().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
|
inline |
References m_config, and Slic3r::ConfigBase::option().
Here is the call graph for this function:| std::string Slic3r::PlaceholderParser::process | ( | const std::string & | templ, |
| unsigned int | current_extruder_id, | ||
| const DynamicConfig * | config_override, | ||
| DynamicConfig * | config_outputs, | ||
| ContextData * | context | ||
| ) | const |
References Slic3r::client::MyContext::config, config(), Slic3r::client::MyContext::config_outputs, Slic3r::client::MyContext::config_override, Slic3r::client::MyContext::context_data, Slic3r::client::MyContext::current_extruder_id, Slic3r::client::MyContext::external_config, external_config(), and Slic3r::process_macro().
Referenced by Slic3r::PrintStatistics::finalize_output_path(), Slic3r::SLAPrintStatistics::finalize_output_path(), Slic3r::PrintBase::output_filename(), Slic3r::GCode::placeholder_parser_process(), and process().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
References process().
Here is the call graph for this function:
|
inline |
References m_config, and Slic3r::DynamicConfig::set_key_value().
Here is the call graph for this function:References set().
Referenced by PlaceholderParser(), Slic3r::GCode::_do_export(), Slic3r::SLAPrint::apply(), apply_config(), apply_env_variables(), apply_only(), set(), and Slic3r::GCode::set_extruder().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
References m_config, and update_timestamp().
Referenced by PlaceholderParser(), Slic3r::PrintBase::output_filename(), and update_timestamp().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
References config(), and Slic3r::DynamicConfig::set_key_value().
Referenced by Slic3r::GCode::_do_export().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Referenced by apply_config(), apply_config(), clear_config(), config(), config_diff(), config_writable(), option(), set(), and update_timestamp().
|
private |
Referenced by external_config().