added appendToLabel
This commit is contained in:
parent
db35df38fc
commit
50045330ae
6
mesh.hpp
6
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
|
||||
|
|
|
|||
Loading…
Reference in New Issue