diff options
Diffstat (limited to 'xs/src/libslic3r/PlaceholderParser.hpp')
-rw-r--r-- | xs/src/libslic3r/PlaceholderParser.hpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/xs/src/libslic3r/PlaceholderParser.hpp b/xs/src/libslic3r/PlaceholderParser.hpp index 4e0aa9ee2..49d53ec9e 100644 --- a/xs/src/libslic3r/PlaceholderParser.hpp +++ b/xs/src/libslic3r/PlaceholderParser.hpp @@ -14,7 +14,6 @@ class PlaceholderParser public: PlaceholderParser(); - void update_timestamp(); void apply_config(const DynamicPrintConfig &config); void apply_env_variables(); @@ -37,6 +36,11 @@ public: // Throws std::runtime_error on syntax or runtime error. static bool evaluate_boolean_expression(const std::string &templ, const DynamicConfig &config, const DynamicConfig *config_override = nullptr); + // Update timestamp, year, month, day, hour, minute, second variables at the provided config. + static void update_timestamp(DynamicConfig &config); + // Update timestamp, year, month, day, hour, minute, second variables at m_config. + void update_timestamp() { update_timestamp(m_config); } + private: DynamicConfig m_config; }; |