Skip to content

Commit 285d40d

Browse files
committed
add to_string() method in ifcopenshell.file
1 parent 80e1663 commit 285d40d

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/ifcwrap/IfcParseWrapper.i

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,12 @@ static IfcUtil::ArgumentType helper_fn_attribute_type(const IfcUtil::IfcBaseClas
9090
f << (*$self);
9191
}
9292

93+
std::string to_string() {
94+
std::stringstream s;
95+
s << (*$self);
96+
return s.str();
97+
}
98+
9399
std::vector<unsigned> entity_names() const {
94100
std::vector<unsigned> keys;
95101
keys.reserve(std::distance($self->begin(), $self->end()));

0 commit comments

Comments
 (0)