Fixed retrieving attributes derived in subtype Convert argument type enumeration to python string Add ability to iterate over all instances from python

This commit is contained in:
Thomas Krijnen
2014-07-04 16:37:21 +02:00
parent dbc60bedd6
commit f674493843
10 changed files with 97 additions and 17 deletions
+9
View File
@@ -85,6 +85,15 @@ namespace IfcParse {
void AddEntity(IfcUtil::IfcSchemaEntity e);
IfcFile();
~IfcFile();
std::vector<int> entity_names() const {
std::vector<int> keys;
keys.reserve(byid.size());
for (MapEntityById::const_iterator it = byid.begin(); it != byid.end(); ++ it) {
keys.push_back(it->first);
}
return keys;
}
};
IfcParse::IfcFile* open(const std::string& s) {