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