|
KiCad PCB EDA Suite
|
#include <text_eval_parser.h>
Public Types | |
| using | VAR_CALLBACK = EVAL_VISITOR::VAR_CALLBACK |
Static Public Member Functions | |
| static std::pair< std::string, bool > | Process (const DOC &aDoc, VAR_CALLBACK aVariableCallback) |
| Process document using callback for variable resolution. | |
| static std::tuple< std::string, std::vector< std::string >, bool > | ProcessWithDetails (const DOC &aDoc, VAR_CALLBACK aCallback) |
| Process document with detailed error reporting. | |
Definition at line 454 of file text_eval_parser.h.
Definition at line 457 of file text_eval_parser.h.
|
static |
Process document using callback for variable resolution.
| aDoc | Document to process |
| aVariableCallback | Function to resolve variables |
Definition at line 1128 of file text_eval_parser.cpp.
References calc_parser::Calc, calc_parser::DOC::GetNodes(), calc_parser::RESULT< T >::GetValue(), calc_parser::DOC::HasErrors(), calc_parser::ERROR_COLLECTOR::HasErrors(), result, calc_parser::Text, and calc_parser::VALUE_UTILS::ToString().
Referenced by BOOST_AUTO_TEST_CASE(), EXPRESSION_EVALUATOR::evaluateWithFullParser(), and ProcessWithDetails().
|
static |
Process document with detailed error reporting.
| aDoc | Document to process |
| aCallback | Function to resolve variables |
Definition at line 1173 of file text_eval_parser.cpp.
References calc_parser::DOC::GetErrors(), Process(), and result.