Isis 3 Programmer Reference
|
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 61 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 181 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 194 of file ExportImagesWorkOrder.cpp.
Isis::ExportImagesWorkOrder::ProjectImageExportFunctor::~ProjectImageExportFunctor | ( | ) |
Destroys the functor.
Definition at line 205 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 242 of file ExportImagesWorkOrder.cpp.
References Isis::IException::append(), and Isis::IException::Unknown.
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 216 of file ExportImagesWorkOrder.cpp.
References Isis::FileName::baseName().
|
private |
Not implemented.
|
private |
Definition at line 75 of file ExportImagesWorkOrder.h.
|
private |
Definition at line 78 of file ExportImagesWorkOrder.h.
|
private |
Definition at line 77 of file ExportImagesWorkOrder.h.
|
private |
Definition at line 79 of file ExportImagesWorkOrder.h.