22 #ifndef MTROPOLIS_MODIFIER_FACTORY_H 23 #define MTROPOLIS_MODIFIER_FACTORY_H 25 #include "mtropolis/data.h" 26 #include "mtropolis/runtime.h" 56 template<
typename TModifier,
typename TModifierData>
63 PlugIn &getPlugIn()
const override;
69 template<
typename TModifier,
typename TModifierData>
73 template<
typename TModifier,
typename TModifierData>
80 if (!downcastMod->loadPlugInHeader(plugInContext) || !modifier->load(plugInContext, static_cast<const TModifierData &>(*plugInModifierData.plugInData.get())))
83 if (downcastMod->getName().empty())
84 downcastMod->setName(downcastMod->getDefaultName());
85 downcastMod->setSelfReference(modifier);
91 template<
typename TModifier,
typename TModifierData>
96 template<
typename TModifier,
typename TModifierData>
101 SIModifierFactory *getModifierFactoryForDataObjectType(Data::DataObjectTypes::DataObjectType dataObjectType);
Definition: modifier_factory.h:30
Definition: modifier_factory.h:44
void reset()
Definition: ptr.h:278
Definition: runtime.h:1185
Definition: runtime.h:3035
Definition: modifier_factory.h:57
Definition: modifier_factory.h:48
PointerType get() const
Definition: ptr.h:229
Definition: runtime.h:2355
Definition: modifier_factory.h:36
Definition: modifier_factory.h:40