added appendToLabel

This commit is contained in:
iasonmanolas 2022-07-12 13:07:51 +03:00
parent db35df38fc
commit 50045330ae
1 changed files with 6 additions and 0 deletions

View File

@ -17,6 +17,7 @@ public:
std::string getLabel() const; std::string getLabel() const;
void setLabel(const std::string &newLabel); void setLabel(const std::string &newLabel);
void prependToLabel(const std::string &text); void prependToLabel(const std::string &text);
void appendToLabel(const std::string &text);
}; };
inline std::string Mesh::getLabel() const { return label; } inline std::string Mesh::getLabel() const { return label; }
@ -28,4 +29,9 @@ inline void Mesh::prependToLabel(const std::string &text)
label = text + label; label = text + label;
} }
inline void Mesh::appendToLabel(const std::string &text)
{
label = label + text;
}
#endif // MESH_HPP #endif // MESH_HPP