ana::DefinitionMaker Class Reference

this object wraps the factory method that creates an object definition More...

#include <DefinitionMaker.h>

List of all members.

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)

Detailed Description

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.


Constructor & Destructor Documentation

ana::DefinitionMaker::DefinitionMaker ( ObjectType  val_type,
const std::string &  val_name,
const std::function< StatusCode(DefinitionArgs &)> &  val_function 
)

standard constructor

Guarantee
no-fail

Member Function Documentation

void ana::DefinitionMaker::addDefinition ( DefinitionMaker  val_definition  )  [static]

add a new object definition

Guarantee
strong
Failures
out of memory I
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

Guarantee
no-fail

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 1 Dec 2017 for RootCore Packages by  doxygen 1.6.1