2 |
|
|
3 |
|
#include "l1menu/ITrigger.h" |
4 |
|
|
5 |
– |
#include <iostream> |
5 |
|
#include <sstream> |
6 |
|
#include <stdexcept> |
7 |
|
|
149 |
|
|
150 |
|
void l1menu::TriggerTable::registerTrigger( const std::string& name, unsigned int version, std::unique_ptr<l1menu::ITrigger> (*creationFunctionPointer)() ) |
151 |
|
{ |
153 |
– |
// TODO - remove this printout once everything is working reliably |
154 |
– |
std::cout << "Registering trigger \"" << name << "\" in the trigger table with version " << version << std::endl; |
155 |
– |
|
152 |
|
TriggerDetails newTriggerDetails{ name, version }; |
153 |
|
|
154 |
|
// First make sure there is not a trigger with the same name and version already registered |