#1153 HdfSerializer.remove() for cache eviction

This commit is contained in:
Thomas Krijnen
2021-10-29 10:41:21 +02:00
parent c754d15da8
commit 5f7d92aeb0
2 changed files with 6 additions and 0 deletions
+5
View File
@@ -252,6 +252,11 @@ void HdfSerializer::read_surface_style(surface_style_serialization& s, std::shar
}
void HdfSerializer::remove(const std::string& guid) {
if (H5Lexists(file.getId(), guid.c_str(), H5P_DEFAULT)) {
file.unlink(guid);
}
}
const IfcGeom::Element* HdfSerializer::read(IfcParse::IfcFile& f, const std::string& guid, unsigned int representation_id, read_type rt) {
if (!H5Lexists(file.getId(), guid.c_str(), H5P_DEFAULT)) {