27 #include "core/kernel/WModuleFactory.h"
29 #include "WModuleContainerWrapper.h"
53 boost::shared_ptr< WDataModule > dataModule = boost::static_pointer_cast<
WDataModule >(
57 dataModule->setFilename( filename );
59 m_mc->add( dataModule );
61 dataModule->isReadyOrCrashed().wait();
Base for all data loader modules.
void remove(WModuleWrapper module)
Remove a module from the container.
WModuleContainerWrapper()
Constructor.
WModuleWrapper create(std::string const &name)
Creates a module from the prototype with the given name.
~WModuleContainerWrapper()
Destructor.
boost::shared_ptr< WModuleContainer > m_mc
The module container.
virtual void setSuppressColormaps(bool suppress=true)
Allows suppression of colormap registration in data modules.
boost::shared_ptr< WModule > getModulePtr()
Returns the module pointer.
static SPtr getModuleFactory()
Returns instance of the module factory to use to create modules.
WModuleWrapper createDataModule(std::string const &filename)
Creates a data module and load the file given via filename.