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