| 125 | } |
| 126 | |
| 127 | void 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 | |
| 140 | void IfcSpfHeader::read() { |
| 141 | readTerminal(ISO_10303_21, TRAILING_SEMICOLON); |