@brief Set YAML node properties (anchor and/or tag names) to the given node. @param node A node type object to be set YAML node properties.
| 8376 | /// @brief Set YAML node properties (anchor and/or tag names) to the given node. |
| 8377 | /// @param node A node type object to be set YAML node properties. |
| 8378 | void apply_node_properties(basic_node_type& node) { |
| 8379 | if (m_needs_anchor_impl) { |
| 8380 | node.add_anchor_name(std::string(m_anchor_name.begin(), m_anchor_name.end())); |
| 8381 | m_needs_anchor_impl = false; |
| 8382 | m_anchor_name = {}; |
| 8383 | } |
| 8384 | |
| 8385 | if (m_needs_tag_impl) { |
| 8386 | node.add_tag_name(std::string(m_tag_name.begin(), m_tag_name.end())); |
| 8387 | m_needs_tag_impl = false; |
| 8388 | m_tag_name = {}; |
| 8389 | } |
| 8390 | } |
| 8391 | |
| 8392 | /// @brief Update the target YAML version with an input string. |
| 8393 | /// @param version_str A YAML version string. |
no test coverage detected