Isis 3 Programmer Reference
Isis::ControlList::CopyControlDataFunctor Class Reference

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

Inheritance diagram for Isis::ControlList::CopyControlDataFunctor:
Inheritance graph
Collaboration diagram for Isis::ControlList::CopyControlDataFunctor:
Collaboration graph

Public Member Functions

 CopyControlDataFunctor (const Project *project, FileName newProjectRoot)
 CopyControlDataFunctor constructor.
 
 CopyControlDataFunctor (const CopyControlDataFunctor &other)
 CopyControlDataFunctor copy constructor.
 
 ~CopyControlDataFunctor ()
 CopyControlDataFunctor destructor.
 
void * operator() (Control *const &controlToCopy)
 Copies the Control from one project to another.
 
CopyControlDataFunctoroperator= (const CopyControlDataFunctor &rhs)
 CopyControlDataFunctor assignment operator.
 

Private Attributes

const Projectm_project
 Project to copy the control list to.
 
FileName m_newProjectRoot
 The filename of the destination project's root.
 

Detailed Description

This functor is used for copying the control nets 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-10-11 Tracie Sucharski - Adapted from Copy ImageDataFunctor
History
2012-10-11 Tracie Sucharski - Original version.

Definition at line 126 of file ControlList.h.

Constructor & Destructor Documentation

◆ CopyControlDataFunctor() [1/2]

Isis::ControlList::CopyControlDataFunctor::CopyControlDataFunctor ( const Project * project,
FileName newProjectRoot )

CopyControlDataFunctor constructor.

Parameters
projectProject to copy from
newProjectRootProject to copy to

Definition at line 680 of file ControlList.cpp.

References m_newProjectRoot, and m_project.

◆ CopyControlDataFunctor() [2/2]

Isis::ControlList::CopyControlDataFunctor::CopyControlDataFunctor ( const CopyControlDataFunctor & other)

CopyControlDataFunctor copy constructor.

Parameters
otherThe other CopyControlDataFunctor to initialize data from

Definition at line 692 of file ControlList.cpp.

◆ ~CopyControlDataFunctor()

Isis::ControlList::CopyControlDataFunctor::~CopyControlDataFunctor ( )

CopyControlDataFunctor destructor.

Definition at line 701 of file ControlList.cpp.

Member Function Documentation

◆ operator()()

void * Isis::ControlList::CopyControlDataFunctor::operator() ( Control *const & controlToCopy)

Copies the Control from one project to another.

Parameters
controlToCopyThe Control to copy

Definition at line 710 of file ControlList.cpp.

◆ operator=()

ControlList::CopyControlDataFunctor & Isis::ControlList::CopyControlDataFunctor::operator= ( const CopyControlDataFunctor & rhs)

CopyControlDataFunctor assignment operator.

Parameters
rhsThe other CopyControlDataFunctor to copy from
Returns
ControlList::CopyControlDataFunctor The new copy

Definition at line 723 of file ControlList.cpp.

References m_project.

Member Data Documentation

◆ m_newProjectRoot

FileName Isis::ControlList::CopyControlDataFunctor::m_newProjectRoot
private

The filename of the destination project's root.

Definition at line 138 of file ControlList.h.

Referenced by CopyControlDataFunctor().

◆ m_project

const Project* Isis::ControlList::CopyControlDataFunctor::m_project
private

Project to copy the control list to.

Definition at line 137 of file ControlList.h.

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


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