Adapt XML serializer for changes in IFC4 decomposition and property set types

This commit is contained in:
Thomas Krijnen
2015-05-21 12:06:38 +00:00
parent b7d4eb62d5
commit 7390faa654
3 changed files with 37 additions and 12 deletions
+7 -3
View File
@@ -25,11 +25,15 @@
#include "IfcUtil.h"
void IfcEntityList::push(IfcUtil::IfcBaseClass* l) {
if ( l ) ls.push_back(l);
if (l) {
ls.push_back(l);
}
}
void IfcEntityList::push(const IfcEntityList::ptr& l) {
for( it i = l->begin(); i != l->end(); ++i ) {
if ( *i ) ls.push_back(*i);
if (l) {
for( it i = l->begin(); i != l->end(); ++i ) {
if ( *i ) ls.push_back(*i);
}
}
}
unsigned int IfcEntityList::size() const { return (unsigned int) ls.size(); }