PlaceholderParser.xsp 649 B

12345678910111213141516171819202122
  1. %module{Slic3r::XS};
  2. %{
  3. #include <xsinit.h>
  4. #include <vector>
  5. #include "libslic3r/PlaceholderParser.hpp"
  6. %}
  7. %name{Slic3r::GCode::PlaceholderParser} class PlaceholderParser {
  8. PlaceholderParser();
  9. ~PlaceholderParser();
  10. Clone<PlaceholderParser> clone()
  11. %code{% RETVAL = THIS; %};
  12. void update_timestamp();
  13. void apply_env_variables();
  14. void apply_config(DynamicPrintConfig *config)
  15. %code%{ THIS->apply_config(*config); %};
  16. void set(std::string key, std::string value);
  17. %name{set_multiple} void set(std::string key, std::vector<std::string> values);
  18. std::string process(std::string str) const;
  19. };