28 #include "WModuleContainerWrapper.h"
29 #include "core/kernel/WDataModuleInputFile.h"
30 #include "core/kernel/WModuleFactory.h"
54 std::shared_ptr< WDataModule > dataModule = std::static_pointer_cast< WDataModule >(
57 dataModule->setSuppressColormaps(
true );
60 m_mc->add( dataModule );
62 dataModule->isReadyOrCrashed().wait();
WModuleWrapper create(std::string const &name)
Creates a module from the prototype with the given name.
void remove(WModuleWrapper module)
Remove a module from the container.
WModuleWrapper createDataModule(std::string const &filename)
Creates a data module and load the file given via filename.
std::shared_ptr< WModuleContainer > m_mc
The module container.
~WModuleContainerWrapper()
Destructor.
WModuleContainerWrapper()
Constructor.
static SPtr getModuleFactory()
Returns instance of the module factory to use to create modules.
std::shared_ptr< WModule > getModulePtr()
Returns the module pointer.