36 #define SOT_FACTORY_TEMPLATE_ENTITY_PLUGIN(sotClassType, sotType, className) \ 38 const double Derivator<sotType>::TIMESTEP_DEFAULT = 1.; \ 40 std::string sotClassType<sotType>::getTypeName(void) { \ 44 const std::string sotClassType<sotType>::CLASS_NAME = \ 45 std::string(className) + "_of_" + #sotType; \ 47 Entity *regFunction##_##sotType##_##sotClassType( \ 48 const std::string &objname) { \ 49 return new sotClassType<sotType>(objname); \ 51 EntityRegisterer regObj##_##sotType##_##sotClassType( \ 52 std::string(className) + "_of_" + #sotType, \ 53 ®Function##_##sotType##_##sotClassType); \ 68 #define SOT_FACTORY_TEMPLATE_ENTITY_PLUGIN_WIN32(sotClassType, sotType, \ 70 sotClassType##sotType## ::sotClassType##sotType##(const std::string &name) \ 71 : sotClassType<sotType>(name){}; 73 typedef double Double;
74 SOT_FACTORY_TEMPLATE_ENTITY_PLUGIN_WIN32(
Derivator, Double,
"Derivator")
75 SOT_FACTORY_TEMPLATE_ENTITY_PLUGIN_WIN32(
Derivator,
Vector,
"Derivator")
76 SOT_FACTORY_TEMPLATE_ENTITY_PLUGIN_WIN32(
Derivator,
Matrix,
"Derivator")
Eigen::Quaternion< double > SOT_CORE_EXPORT VectorQuaternion
SOT_FACTORY_TEMPLATE_ENTITY_PLUGIN(FIRFilter, double, double, double_double, "FIRFilter") SOT_FACTORY_TEMPLATE_ENTITY_PLUGIN(FIRFilter