MySources/mesh.hpp

21 lines
434 B
C++
Executable File

#ifndef MESH_HPP
#define MESH_HPP
#include <string>
class Mesh {
std::string label;
public:
virtual ~Mesh() = default;
virtual bool load(const std::string &filePath) { return false; }
std::string getLabel() const;
void setLabel(const std::string &newLabel);
};
inline std::string Mesh::getLabel() const { return label; }
inline void Mesh::setLabel(const std::string &newLabel) { label = newLabel; }
#endif // MESH_HPP