MCPcopy Create free account
hub / github.com/IfcOpenShell/IfcOpenShell / repr

Method repr

src/ifcparse/parse_ifcxml.cpp:191–205  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

189 const IfcParse::parameter_type* aggregate_elem_type() const { return aggregate_elem_type_; }
190
191 std::string repr() const {
192 std::stringstream stream;
193 static const char* const node_type_names[] = {"empty", "inst", "attr", "aggr", "agelem", "inv", "sel", "head", "hdentry"};
194 stream << "[" << node_type_names[type_] << "] ";
195 if (inst_ != nullptr) {
196 stream << inst_->declaration().name() << " ";
197 }
198 if (type_ == node_aggregate) {
199 stream << "{" << aggregate_elements.size() << " elems} ";
200 }
201 if (idx_ != -1) {
202 stream << idx_ << " ";
203 }
204 return stream.str();
205 }
206};
207
208struct ifcxml_parse_state {

Callers 1

start_elementFunction · 0.80

Calls 3

nameMethod · 0.45
sizeMethod · 0.45
strMethod · 0.45

Tested by

no test coverage detected