| 186 | } |
| 187 | |
| 188 | NodeParser::AttrNames NodeParser::get_attribute_names() const { |
| 189 | AttrNames names; |
| 190 | for (size_t i=0; i<m_num_node_attributes; i++) { |
| 191 | std::stringstream name; |
| 192 | name << "node_attribute_" << i; |
| 193 | names.push_back(name.str()); |
| 194 | } |
| 195 | if (!m_boundary_node_markers.empty()) { |
| 196 | names.push_back("node_boundary_marker"); |
| 197 | } |
| 198 | if (!m_boundary_face_markers.empty()) { |
| 199 | names.push_back("face_boundary_marker"); |
| 200 | } |
| 201 | if (!m_region_attributes.empty()) { |
| 202 | names.push_back("region"); |
| 203 | } |
| 204 | return names; |
| 205 | } |
| 206 | |
| 207 | size_t NodeParser::get_attribute_size(const std::string& name) const { |
| 208 | if (name.substr(0, 4) == "node") { |