17 #define SOT_FACTORY_TEMPLATE_ENTITY_PLUGIN(sotClassType, sotSigType, \ 18 sotCoefType, id, className) \ 20 std::string sotClassType<sotSigType, sotCoefType>::getTypeName(void) { \ 25 const std::string sotClassType<sotSigType, sotCoefType>::CLASS_NAME = \ 26 std::string(className) + "_" + #sotSigType + "_" + #sotCoefType; \ 29 const std::string &sotClassType<sotSigType, sotCoefType>::getClassName(void) \ 34 Entity *regFunction##_##id(const std::string &objname) { \ 35 return new sotClassType<sotSigType, sotCoefType>(objname); \ 37 EntityRegisterer reg##_##id(std::string(className) + "_" + #sotSigType + \ 39 ®Function##_##id); \ 55 void FIRFilter<Vector,
double>::reset_signal(Vector &res,
56 const Vector &sample) {
57 res.resize(sample.size());
64 res.resize(sample.size());
74 #define DEFINE_SPECIFICATION(sotClassType, sotSigType, sotCoefType) \ 75 sotClassType##sotSigType##sotCoefType:: \ 76 sotClassType##sotSigType##sotCoefType(const std::string &name) \ 77 : sotClassType<sotSigType, sotCoefType>(name){}; 81 typedef double Double;
83 DEFINE_SPECIFICATION(
FIRFilter, Double, Double)
static void reset_signal(sigT &, const sigT &)
SOT_FACTORY_TEMPLATE_ENTITY_PLUGIN(FIRFilter, double, double, double_double, "FIRFilter") SOT_FACTORY_TEMPLATE_ENTITY_PLUGIN(FIRFilter