| 953 | } |
| 954 | |
| 955 | unsigned IfcUtil::IfcBaseEntity::set_id(const boost::optional<unsigned>& i) { |
| 956 | if (i) { |
| 957 | return id_ = *i; |
| 958 | } |
| 959 | return id_ = file_->FreshId(); |
| 960 | } |
| 961 | |
| 962 | namespace { |
| 963 | // @todo remove redundancy with python wrapper code (which is not identical due to |