41 [[nodiscard]]
auto path() const -> filesystem::
path;
44 [[nodiscard]] auto
name() const -> std::
string;
Base class for objects stored on disk with an associated metadata file.
void setMetadataEntry(const std::string &key, T value)
Set a metadata entry.
std::pair< Identifier, std::string > Description
auto path() const -> filesystem::path
Get the path to the object.
auto getMetadataEntry(const std::string &key) const -> std::optional< T >
Get a metadata entry.
std::string Identifier
Identifier type.
Identifier id() const
Get the "unique" ID for the object.
DiskBasedObjectBaseClass()=delete
DiskBasedObjectBaseClass(filesystem::path path, Identifier uuid, std::string name)
auto name() const -> std::string
Get the human-readable name for the object.
void saveMetadata() const
Update metadata on disk.
void setName(std::string n)
Set the human-readable name of the object.
DiskBasedObjectBaseClass(filesystem::path path)
Volume Cartographer library