) const { \
E_DEBUG(
EFactory, BaseAlgorithm::processingMode <<
": Creating algorithm: " <<
id); \
typename CreatorMap::const_iterator it = _map.find(id); \
if (it == _map.end()) { \
std::ostringstream msg; \
msg << "Identifier '" << id << "' not found in registry...\n"; \
msg << "Available algorithms:"; \
for (it=_map.begin(); it!=_map.end(); ++it) { \
msg << ' ' << it->first; \
} \
throw EssentiaException(msg); \
} \
E_DEBUG_INDENT; \
BaseAlgorithm* algo = it->second.create(); \
E_DEBUG_OUTDENT; \
algo->setName(id); \
algo->declareParameters(); \
ParameterMap params;
@ EFactory
Definition: debugging.h:44