Isis 3.0 Object Programmers' Reference |
Home |
This functor is meant for QtConcurrentMap. More...
Public Member Functions | |
ProjectImageExportFunctor (QString destination) | |
Create an image export functor that will copy the image's cubes into the given destination directory. | |
ProjectImageExportFunctor (const ProjectImageExportFunctor &other) | |
Copy the functor. | |
~ProjectImageExportFunctor () | |
Destroys the functor. | |
void * | operator() (Image *const &imageToExport) |
Write the given image's cube into the destination folder (preserves the base name). | |
IException | errors () const |
Get the accumulated error list from this functor's run. | |
Private Member Functions | |
ProjectImageExportFunctor & | operator= (const ProjectImageExportFunctor &rhs) |
Not implemented. | |
Private Attributes | |
QString | m_destination |
QMutex | m_errorsLock |
QSharedPointer< IException > | m_errors |
QSharedPointer< int > | m_numErrors |
This functor is meant for QtConcurrentMap.
This writes images to the output directory and always returns a void*. This is using map instead of run for performance reasons (map is much faster). Errors are accumulated, you can call errors() after the map is done to get them.
Definition at line 57 of file ExportImagesWorkOrder.h.
Isis::ExportImagesWorkOrder::ProjectImageExportFunctor::ProjectImageExportFunctor | ( | QString | destination | ) |
Create an image export functor that will copy the image's cubes into the given destination directory.
destination | The directory to copy cubes into in the () operator. |
Definition at line 173 of file ExportImagesWorkOrder.cpp.
Isis::ExportImagesWorkOrder::ProjectImageExportFunctor::ProjectImageExportFunctor | ( | const ProjectImageExportFunctor & | other | ) |
Copy the functor.
This will share the error reporting data across instances so that you can access the errors gathered during a QtConcurrentMap (which copies the functor).
other | The functor to copy |
Definition at line 186 of file ExportImagesWorkOrder.cpp.
Isis::ExportImagesWorkOrder::ProjectImageExportFunctor::~ProjectImageExportFunctor | ( | ) |
Destroys the functor.
Definition at line 197 of file ExportImagesWorkOrder.cpp.
IException Isis::ExportImagesWorkOrder::ProjectImageExportFunctor::errors | ( | ) | const |
Get the accumulated error list from this functor's run.
This will return a default-constructed (empty/blank) exception if no errors were encountered.
Definition at line 234 of file ExportImagesWorkOrder.cpp.
References _FILEINFO_, Isis::IException::append(), and Isis::IException::Unknown.
Referenced by Isis::ExportImagesWorkOrder::asyncRedo().
void * Isis::ExportImagesWorkOrder::ProjectImageExportFunctor::operator() | ( | Image *const & | imageToExport | ) |
Write the given image's cube into the destination folder (preserves the base name).
imageToExport | Image to export |
Definition at line 208 of file ExportImagesWorkOrder.cpp.
References Isis::Image::closeCube(), Isis::Image::cube(), and Isis::Image::fileName().
|
private |
Not implemented.