artdaq_mfextensions
v1_05_00
Return to top level
Main Page
Namespaces
Classes
Files
File List
File Members
ma_test_function.cpp
1
#include "ErrorHandler/MessageAnalyzer/ma_test_function.h"
2
3
using namespace
novadaq::errorhandler;
4
5
void
6
ma_test_function_factory::reg( std::string
const
& func_name, gen_test_t f )
7
{
8
get_map().insert( std::make_pair(func_name, f) );
9
}
10
11
ma_test_function
*
12
ma_test_function_factory::create_instance( std::string
const
& func_name )
13
{
14
gen_map_t::iterator it = get_map().find(func_name);
15
16
if
( it!=get_map().end() )
17
return
it->second( );
18
19
throw
std::runtime_error(
"unknown test function name"
);
20
}
novadaq::errorhandler::ma_test_function
Definition:
ma_test_function.h:24
src
ErrorHandler
MessageAnalyzer
ma_test_function.cpp
Generated on Mon Jul 27 2020 09:28:11 for artdaq_mfextensions by
1.8.5