Isis 3 Programmer Reference
Isis::ImageList::CopyImageDataFunctor Class Reference

This functor is used for copying the images between two projects quickly. More...

Inheritance diagram for Isis::ImageList::CopyImageDataFunctor:
Inheritance graph
Collaboration diagram for Isis::ImageList::CopyImageDataFunctor:
Collaboration graph

Public Member Functions

 CopyImageDataFunctor (const Project *project, FileName newProjectRoot)
 Constructor for CopyImageDataFunctor.
 
 CopyImageDataFunctor (const CopyImageDataFunctor &other)
 Copy constructor for CopyImageDataFunctor.
 
 ~CopyImageDataFunctor ()
 Destructor for CopyImageDataFunctor.
 
void * operator() (Image *const &imageToCopy)
 Copies the cub/ecub files for an image into m_project.
 
CopyImageDataFunctoroperator= (const CopyImageDataFunctor &rhs)
 Assignment operator for CopyImageDataFunctor.
 

Private Attributes

const Projectm_project
 This stores the name of the project that is going to be copied to.
 
FileName m_newProjectRoot
 This stores the path to the root of the project that is going to be copied to.
 

Detailed Description

This functor is used for copying the images between two projects quickly.

This is designed to work with QtConcurrentMap, though the results are all NULL (QtConcurrentMap is much faster than many QtConcurrentRun calls).

Author
2012-09-?? Steven Lambright

Definition at line 170 of file ImageList.h.

Constructor & Destructor Documentation

◆ CopyImageDataFunctor() [1/2]

Isis::ImageList::CopyImageDataFunctor::CopyImageDataFunctor ( const Project * project,
FileName newProjectRoot )

Constructor for CopyImageDataFunctor.

Parameters
projectThe project that the image data will be saved to when the functor is used
newProjectRootThe path to the project root

Definition at line 881 of file ImageList.cpp.

References m_newProjectRoot, and m_project.

◆ CopyImageDataFunctor() [2/2]

Isis::ImageList::CopyImageDataFunctor::CopyImageDataFunctor ( const CopyImageDataFunctor & other)

Copy constructor for CopyImageDataFunctor.

Parameters
otherThe functor to copy from

Definition at line 893 of file ImageList.cpp.

◆ ~CopyImageDataFunctor()

Isis::ImageList::CopyImageDataFunctor::~CopyImageDataFunctor ( )

Destructor for CopyImageDataFunctor.

Definition at line 902 of file ImageList.cpp.

Member Function Documentation

◆ operator()()

void * Isis::ImageList::CopyImageDataFunctor::operator() ( Image *const & imageToCopy)

Copies the cub/ecub files for an image into m_project.

Used by save to copy the imageList into a new project.

Parameters
imageToCopyThe image to copy into m_project.
See also
save

Definition at line 914 of file ImageList.cpp.

References Isis::IException::Io.

◆ operator=()

ImageList::CopyImageDataFunctor & Isis::ImageList::CopyImageDataFunctor::operator= ( const CopyImageDataFunctor & rhs)

Assignment operator for CopyImageDataFunctor.

Parameters
rhsThe functor to assign from
Returns
ImageList::CopyImageDataFunctor & A reference to a copy of the functor

Definition at line 934 of file ImageList.cpp.

References m_project.

Member Data Documentation

◆ m_newProjectRoot

FileName Isis::ImageList::CopyImageDataFunctor::m_newProjectRoot
private

This stores the path to the root of the project that is going to be copied to.

Definition at line 188 of file ImageList.h.

Referenced by CopyImageDataFunctor().

◆ m_project

const Project* Isis::ImageList::CopyImageDataFunctor::m_project
private

This stores the name of the project that is going to be copied to.

Definition at line 184 of file ImageList.h.

Referenced by CopyImageDataFunctor(), and operator=().


The documentation for this class was generated from the following files: