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_parser< safety_level > Class Template Reference

A parser for generic XML documents. More...

#include <xml_parser.h>

Inheritance diagram for docwire::xml_parser< safety_level >:
docwire::chain_element docwire::with_pimpl< chain_element > docwire::with_pimpl_base

Public Member Functions

continuation operator() (message_ptr msg, const message_callbacks &emit_message) override
 Processes a message in the parsing chain. More...
 
bool is_leaf () const override
 Check if chain element is a leaf (last element which doesn't produce any messages). At this moment only exporters are leafs. More...
 
- Public Member Functions inherited from docwire::chain_element
 chain_element (chain_element &&)=default
 
chain_elementoperator= (chain_element &&)=default
 
virtual bool is_generator () const
 

Additional Inherited Members

- Protected Types inherited from docwire::with_pimpl< chain_element >
using impl_type = pimpl_impl< chain_element >
 
- Protected Member Functions inherited from docwire::with_pimpl< chain_element >
impl_typecreate_impl (Args &&... args)
 
 with_pimpl (Args &&... args)
 
 with_pimpl (with_pimpl< chain_element > &&other) noexcept
 
 with_pimpl (std::nullptr_t)
 
with_pimploperator= (with_pimpl &&other) noexcept
 
impl_typeimpl ()
 
const impl_typeimpl () const
 

Detailed Description

template<safety_policy safety_level = default_safety_level>
class docwire::xml_parser< safety_level >

A parser for generic XML documents.

Template Parameters
safety_levelThe safety policy to use.

Definition at line 27 of file xml_parser.h.

Member Function Documentation

◆ is_leaf()

template<safety_policy safety_level = default_safety_level>
bool docwire::xml_parser< safety_level >::is_leaf ( ) const
inlineoverridevirtual

Check if chain element is a leaf (last element which doesn't produce any messages). At this moment only exporters are leafs.

Returns
true if leaf

Implements docwire::chain_element.

Definition at line 35 of file xml_parser.h.

◆ operator()()

template<safety_policy safety_level = default_safety_level>
continuation docwire::xml_parser< safety_level >::operator() ( message_ptr  msg,
const message_callbacks emit_message 
)
overridevirtual

Processes a message in the parsing chain.

Returns
The continuation status.

Implements docwire::chain_element.


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