MCPcopy Create free account
hub / github.com/IfcOpenShell/IfcOpenShell / file_description

Method file_description

src/ifcparse/IfcSpfHeader.cpp:203–215  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

201}
202
203const Header_section_schema::file_description* IfcParse::IfcSpfHeader::file_description() const {
204 if (file_description_ == nullptr) {
205 std::visit([this](auto& m) {
206 if constexpr (std::is_same_v<std::decay_t<decltype(m)>, impl::rocks_db_file_storage>) {
207 file_description_ = new Header_section_schema::file_description(rocks_db_attribute_storage{});
208 } else if constexpr (std::is_same_v<std::decay_t<decltype(m)>, impl::in_memory_file_storage>) {
209 file_description_ = new Header_section_schema::file_description(in_memory_attribute_storage(Header_section_schema::file_description::Class().attribute_count()));
210 }
211 }, file_->storage_);
212 file_description_->file_ = file_;
213 }
214 return file_description_;
215}
216
217const Header_section_schema::file_name* IfcParse::IfcSpfHeader::file_name() const {
218 if (file_name_ == nullptr) {

Callers 6

finalizeFunction · 0.45
readInstanceMethod · 0.45
process_charactersFunction · 0.45
setup_projectFunction · 0.45
setup_projectFunction · 0.45

Calls 1

visitFunction · 0.50

Tested by

no test coverage detected