From 50045330aed63c6c41151209ce4639a67ea9a430 Mon Sep 17 00:00:00 2001 From: iasonmanolas Date: Tue, 12 Jul 2022 13:07:51 +0300 Subject: [PATCH] added appendToLabel --- mesh.hpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/mesh.hpp b/mesh.hpp index 31d0ab8..4b36635 100755 --- a/mesh.hpp +++ b/mesh.hpp @@ -17,6 +17,7 @@ public: std::string getLabel() const; void setLabel(const std::string &newLabel); void prependToLabel(const std::string &text); + void appendToLabel(const std::string &text); }; inline std::string Mesh::getLabel() const { return label; } @@ -28,4 +29,9 @@ inline void Mesh::prependToLabel(const std::string &text) label = text + label; } +inline void Mesh::appendToLabel(const std::string &text) +{ + label = label + text; +} + #endif // MESH_HPP