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

Method file_schema

src/ifcparse/IfcSpfHeader.cpp:232–245  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

230}
231
232const Header_section_schema::file_schema* IfcParse::IfcSpfHeader::file_schema() const {
233 if (file_schema_ == nullptr) {
234 std::visit([this](auto& m) {
235 if constexpr (std::is_same_v<std::decay_t<decltype(m)>, impl::rocks_db_file_storage>) {
236 file_schema_ = new Header_section_schema::file_schema(rocks_db_attribute_storage{});
237 } else if constexpr (std::is_same_v<std::decay_t<decltype(m)>, impl::in_memory_file_storage>) {
238 file_schema_ = new Header_section_schema::file_schema(in_memory_attribute_storage(Header_section_schema::file_schema::Class().attribute_count()));
239 }
240 }, file_->storage_);
241 file_schema_->file_ = file_;
242 }
243
244 return file_schema_;
245}
246
247Header_section_schema::file_description* IfcParse::IfcSpfHeader::file_description() {
248 if (file_description_ == nullptr) {

Callers 6

finalizeFunction · 0.45
readInstanceMethod · 0.45
pushPageMethod · 0.45
InstanceStreamerMethod · 0.45
read_from_streamMethod · 0.45

Calls 1

visitFunction · 0.50

Tested by

no test coverage detected