this object wraps the factory method that creates an object definition More...
#include <DefinitionMaker.h>
Public Member Functions | |
void | testInvariant () const |
check the invariant of this object | |
DefinitionMaker (ObjectType val_type, const std::string &val_name, const std::function< StatusCode(DefinitionArgs &)> &val_function) | |
standard constructor | |
Static Public Member Functions | |
static void | addDefinition (DefinitionMaker val_definition) |
add a new object definition | |
static StatusCode | makeDefinition (DefinitionArgs &args) |
make a new definition | |
static StatusCode | makeDefinitions (const Configuration &config, InternalConfiguration &internal, const std::string &prefix, std::vector< IAnaTool * > &tools) |
this object wraps the factory method that creates an object definition
Usually even the advanced user has nothing to do with this class directly. The instances get instantiated and registered via the various *DEFINITION_MAKER* macros.
ana::DefinitionMaker::DefinitionMaker | ( | ObjectType | val_type, | |
const std::string & | val_name, | |||
const std::function< StatusCode(DefinitionArgs &)> & | val_function | |||
) |
standard constructor
void ana::DefinitionMaker::addDefinition | ( | DefinitionMaker | val_definition | ) | [static] |
add a new object definition
StatusCode ana::DefinitionMaker::makeDefinition | ( | DefinitionArgs & | args | ) | [static] |
make a new definition
Guarantee basic Failures out of memory III
no definitions matching the name
multiple definitions matching the name
static StatusCode ana::DefinitionMaker::makeDefinitions | ( | const Configuration & | config, | |
InternalConfiguration & | internal, | |||
const std::string & | prefix, | |||
std::vector< IAnaTool * > & | tools | |||
) | [static] |
effects: make all definitions from the configuration guarantee: basic failures: out of memory III failures: invalid configuration rationale: this is used to separate the tool generation completely from the tool scheduler
void ana::DefinitionMaker::testInvariant | ( | ) | const |
check the invariant of this object