| 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 | |
| 208 | struct ifcxml_parse_state { |
no test coverage detected