Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/prusa3d/PrusaSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbubnikv <bubnikv@gmail.com>2017-10-30 20:15:41 +0300
committerbubnikv <bubnikv@gmail.com>2017-10-30 20:15:41 +0300
commit1fee3633a05870c5cb83c7e850f1c0e22c4d1276 (patch)
tree6e014837828520cfb7aad2259de91cbb8c605c08 /xs/src/libslic3r/Utils.hpp
parent835e5b71a84d867d50109c6016420ed99316f0aa (diff)
New C++ class AppConfig for maintaining the config.ini
New helper function for generating a unified "generated by slic3r" header.
Diffstat (limited to 'xs/src/libslic3r/Utils.hpp')
-rw-r--r--xs/src/libslic3r/Utils.hpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/xs/src/libslic3r/Utils.hpp b/xs/src/libslic3r/Utils.hpp
index d4da25d87..ac6021ff9 100644
--- a/xs/src/libslic3r/Utils.hpp
+++ b/xs/src/libslic3r/Utils.hpp
@@ -30,6 +30,12 @@ extern std::string encode_path(const char *src);
extern std::string decode_path(const char *src);
extern std::string normalize_utf8_nfc(const char *src);
+// Timestamp formatted for header_slic3r_generated().
+extern std::string timestamp_str();
+// Standard "generated by Slic3r version xxx timestamp xxx" header string,
+// to be placed at the top of Slic3r generated files.
+inline std::string header_slic3r_generated() { return std::string("generated by Slic3r " SLIC3R_VERSION " on ") + timestamp_str(); }
+
// Compute the next highest power of 2 of 32-bit v
// http://graphics.stanford.edu/~seander/bithacks.html
template<typename T>