#include "CxxUtils/checker_macros.h"
#include <string>
#include <vector>
#include <map>
#include <memory>
Go to the source code of this file.
◆ REGISTER_ALG_NS
#define REGISTER_ALG_NS |
( |
|
NS, |
|
|
|
CLASS |
|
) |
| |
Value: namespace { \
std::unique_ptr<TCS::ConfigurableAlg> Create##NS__##CLASS(const std::string & methodName) { \
auto
alg = std::make_unique<NS::CLASS>(methodName); \
alg->setClassName( std::string(#NS) + "__" + #CLASS ); \
alg->msg().setName(
alg->fullname() ); \
} \
\
const bool success = TCS::AlgFactory::mutable_instance().Register( std::string(#NS) + "__" + #CLASS, Create##NS__##CLASS); \
}
Definition at line 49 of file AlgFactory.h.
◆ REGISTER_ALG_TCS
#define REGISTER_ALG_TCS |
( |
|
CLASS | ) |
|
Value: namespace { \
std::unique_ptr<TCS::ConfigurableAlg> Create##CLASS(const std::string & methodName) { \
auto
alg = std::make_unique<TCS::CLASS>(methodName); \
alg->setClassName( #CLASS ); \
alg->msg().setName(
alg->fullname() ); \
} \
\
const bool success = TCS::AlgFactory::mutable_instance().Register( #CLASS, Create##CLASS); \
}
Definition at line 63 of file AlgFactory.h.