Line data Source code
1 : //* This file is part of the MOOSE framework 2 : //* https://mooseframework.inl.gov 3 : //* 4 : //* All rights reserved, see COPYRIGHT for full restrictions 5 : //* https://github.com/idaholab/moose/blob/master/COPYRIGHT 6 : //* 7 : //* Licensed under LGPL 2.1, please see LICENSE for details 8 : //* https://www.gnu.org/licenses/lgpl-2.1.html 9 : 10 : #pragma once 11 : 12 : #include "GeneralReporter.h" 13 : #include "FunctionParserUtils.h" 14 : 15 : /** 16 : * Reporter containing operation between vectors from another Reporter 17 : */ 18 : class ParsedReporterBase : public GeneralReporter, public FunctionParserUtils<false> 19 : { 20 : public: 21 : static InputParameters validParams(); 22 : 23 : ParsedReporterBase(const InputParameters & parameters); 24 : 25 0 : virtual void initialize() override {} 26 0 : virtual void execute() override {} 27 0 : virtual void finalize() override {} 28 : 29 : protected: 30 : /// whether time is part of the parsed expression 31 : const bool _use_t; 32 : 33 : /// Get symbols to corresponding reporter names 34 : /// need symbols because reporter names have a "/" and that will not feed into fparser 35 : const std::vector<std::string> _reporter_symbols; 36 : 37 : /// function parser object 38 : SymFunctionPtr _func_F; 39 : 40 : usingFunctionParserUtilsMembers(false); 41 : };