add to_string() method in ifcopenshell.file

This commit is contained in:
Thomas Krijnen
2019-05-22 16:18:48 +02:00
parent 80e166302a
commit 285d40d586
+6
View File
@@ -90,6 +90,12 @@ static IfcUtil::ArgumentType helper_fn_attribute_type(const IfcUtil::IfcBaseClas
f << (*$self);
}
std::string to_string() {
std::stringstream s;
s << (*$self);
return s.str();
}
std::vector<unsigned> entity_names() const {
std::vector<unsigned> keys;
keys.reserve(std::distance($self->begin(), $self->end()));