KiCad PCB EDA Suite
Loading...
Searching...
No Matches
calc_parser::DOC_PROCESSOR Class Reference

#include <text_eval_parser.h>

Public Types

using VariableCallback = EVAL_VISITOR::VariableCallback
 

Static Public Member Functions

static auto Process (const DOC &aDoc, VariableCallback aVariableCallback) -> std::pair< std::string, bool >
 Process document using callback for variable resolution.
 
static auto ProcessWithDetails (const DOC &aDoc, VariableCallback aVariableCallback) -> std::tuple< std::string, std::vector< std::string >, bool >
 Process document with detailed error reporting.
 

Detailed Description

Definition at line 428 of file text_eval_parser.h.

Member Typedef Documentation

◆ VariableCallback

Member Function Documentation

◆ Process()

auto calc_parser::DOC_PROCESSOR::Process ( const DOC & aDoc,
VariableCallback aVariableCallback ) -> std::pair<std::string, bool>
static

Process document using callback for variable resolution.

Parameters
aDocDocument to process
aVariableCallbackFunction to resolve variables
Returns
Pair of (result_string, had_errors)

Definition at line 586 of file text_eval_parser.cpp.

References calc_parser::Calc, result, calc_parser::Text, and calc_parser::VALUE_UTILS::ToString().

Referenced by BOOST_AUTO_TEST_CASE(), EXPRESSION_EVALUATOR::evaluateWithFullParser(), and ProcessWithDetails().

◆ ProcessWithDetails()

auto calc_parser::DOC_PROCESSOR::ProcessWithDetails ( const DOC & aDoc,
VariableCallback aVariableCallback ) -> std::tuple<std::string, std::vector<std::string>, bool>
static

Process document with detailed error reporting.

Parameters
aDocDocument to process
aVariableCallbackFunction to resolve variables
Returns
Tuple of (result_string, error_messages, had_errors)

Definition at line 628 of file text_eval_parser.cpp.

References Process(), and result.


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