Helper class to be used in conjunction with the recursive tool visitor to renounce certain inputs.
More...
#include </builds/gaudi/Gaudi/GaudiKernel/include/GaudiKernel/RenounceToolInputsVisitor.h>
|
struct | ILogger |
| Helper class interface to optionally log renounce operations. More...
|
|
class | Logger |
|
struct | NoLogger |
| A do-nothing helper class which implements the logger interface. More...
|
|
Helper class to be used in conjunction with the recursive tool visitor to renounce certain inputs.
Definition at line 27 of file RenounceToolInputsVisitor.h.
◆ RenounceToolInputsVisitor()
construct the renounce visitor helper object
- Parameters
-
input_keys | a list of input keys to be renounced. @parame logger optional helper object to log inputs which are renounced. By default this renounce visitor will renounce inputs with keys found in the inputs_names list, and it operates silently. |
Definition at line 69 of file RenounceToolInputsVisitor.h.
◆ createLogger()
static Logger RenounceToolInputsVisitor::createLogger |
( |
std::function< void(std::string_view, std::string_view)> |
func | ) |
|
|
inlinestatic |
Create a logger from a function.
usage:
* auto logger=RenounceToolInputsVisitor::createLogger( [this]( std::string_view tool_name, std::string_view key )
* { this->msg(MSG::INFO) << " Renounce " << tool_name << " . " << key << endmsg;
* });
*
Definition at line 59 of file RenounceToolInputsVisitor.h.
◆ operator()()
void RenounceToolInputsVisitor::operator() |
( |
IAlgTool * |
alg_tool | ) |
|
◆ m_logger
ILogger* RenounceToolInputsVisitor::m_logger |
|
private |
◆ m_renounceKeys
◆ USAGE_IS_THREAD_SAFE
NoLogger s_noLogger RenounceToolInputsVisitor::USAGE_IS_THREAD_SAFE |
|
staticprivate |
The documentation for this class was generated from the following files: