25 #ifndef WBATCHLOADER_H
26 #define WBATCHLOADER_H
32 #include "../common/WSharedSequenceContainer.h"
33 #include "../common/WThreadedRunner.h"
34 #include "WDataModule.h"
42 public std::enable_shared_from_this< WBatchLoader >
48 typedef std::shared_ptr< WBatchLoader >
SPtr;
53 typedef std::shared_ptr< const WBatchLoader >
ConstSPtr;
67 WBatchLoader( std::vector< std::string > filenames, std::shared_ptr< WModuleContainer > targetContainer );
Class for loading many datasets.
virtual void run()
Run thread and load the data.
DataModuleList m_dataModules
The list of modules that have been added.
virtual void threadMain()
Function that has to be overwritten for execution.
DataModuleList::ReadTicket getDataModuleList() const
Returns a ticket to the list of data modules that have been added so far.
std::vector< std::string > m_filenamesToLoad
List of files to load.
bool m_suppressColormaps
If true, data modules are instructed to suppress colormap registration.
virtual ~WBatchLoader()
Destructor.
std::shared_ptr< WBatchLoader > SPtr
Shared ptr abbreviation.
WSharedSequenceContainer< std::vector< WDataModule::SPtr > > DataModuleList
The type is used to store the list of data modules.
std::shared_ptr< WModuleContainer > m_targetContainer
The container which later will contain the loaded datasets.
WBatchLoader(std::vector< std::string > filenames, std::shared_ptr< WModuleContainer > targetContainer)
Initializes the batchloader but does not start it.
std::shared_ptr< const WBatchLoader > ConstSPtr
Const shared ptr abbreviation.
void setSuppressColormaps(bool suppress=true)
Allows suppression of colormap registration in data modules.
bool getSuppressColormaps() const
Checks whether suppression of colormaps is active.
Class able to contain other modules.
std::shared_ptr< WSharedObjectTicketRead< T > > ReadTicket
Type for read tickets.
This class provides a common interface for thread-safe access to sequence containers (list,...
Base class for all classes needing to be executed in a separate thread.