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

Method file

src/ifcparse/IfcSpfHeader.cpp:127–138  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

125}
126
127void IfcParse::IfcSpfHeader::file(IfcParse::IfcFile* file)
128{
129 this->file_ = file;
130 if (file != nullptr) {
131 storage_ = std::visit([this](auto& m) -> decltype(storage_) {
132 if constexpr (std::is_same_v<std::decay_t<decltype(m)>, impl::in_memory_file_storage>) {
133 return &m;
134 }
135 return nullptr;
136 }, file_->storage_);
137 }
138}
139
140void IfcSpfHeader::read() {
141 readTerminal(ISO_10303_21, TRAILING_SEMICOLON);

Calls 1

visitFunction · 0.50