DocWire SDK
DocWire SDK: Award-winning modern data processing in C++20. SourceForge Community Choice & Microsoft support. AI-driven processing. Supports nearly 100 data formats, including email boxes and OCR. Boost efficiency in text extraction, web data extraction, data mining, document analysis. Offline processing possible for security and confidentiality
docwire::xml::descendants_view< safety_level > Class Template Reference

A view over all descendants of an XML node (recursive). More...

#include <xml_descendants.h>

Inheritance diagram for docwire::xml::descendants_view< safety_level >:

Classes

class  iterator
 Iterator for recursively traversing descendant nodes. More...
 

Public Member Functions

iterator begin () const
 
sentinel end () const
 
 descendants_view (not_null< std::shared_ptr< iterator_state< safety_level >>, safety_level > state, int depth)
 Constructs a view from an iterator state and start depth. More...
 

Detailed Description

template<safety_policy safety_level = default_safety_level>
class docwire::xml::descendants_view< safety_level >

A view over all descendants of an XML node (recursive).

Template Parameters
safety_levelThe safety policy to use.
Warning
This class relies on a single-pass XML reader. Advancing the reader invalidates this view and any iterators derived from it.
See also
XML parsing example

Definition at line 34 of file xml_descendants.h.

Constructor & Destructor Documentation

◆ descendants_view()

template<safety_policy safety_level = default_safety_level>
docwire::xml::descendants_view< safety_level >::descendants_view ( not_null< std::shared_ptr< iterator_state< safety_level >>, safety_level >  state,
int  depth 
)
inlineexplicit

Constructs a view from an iterator state and start depth.

Parameters
stateThe shared iterator state.
depthThe depth of the root node of this view.

Definition at line 49 of file xml_descendants.h.


The documentation for this class was generated from the following file: