Isis 3 Programmer Reference
Isis::ShapeList::CopyShapeDataFunctor Class Reference

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

Inheritance diagram for Isis::ShapeList::CopyShapeDataFunctor:
Inheritance graph
Collaboration diagram for Isis::ShapeList::CopyShapeDataFunctor:
Collaboration graph

Public Member Functions

 CopyShapeDataFunctor (const Project *project, FileName newProjectRoot)
 Constructor for CopyShapeDataFunctor.
 
 CopyShapeDataFunctor (const CopyShapeDataFunctor &other)
 Copy constructor for CopyShapeDataFunctor.
 
 ~CopyShapeDataFunctor ()
 Destructor for CopyShapeDataFunctor.
 
void * operator() (Shape *const &shapeToCopy)
 Copies the cub/ecub files for an shape into m_project.
 
CopyShapeDataFunctoroperator= (const CopyShapeDataFunctor &rhs)
 Assignment operator for CopyShapeDataFunctor.
 

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 shapes 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 137 of file ShapeList.h.

Constructor & Destructor Documentation

◆ CopyShapeDataFunctor() [1/2]

Isis::ShapeList::CopyShapeDataFunctor::CopyShapeDataFunctor ( const Project * project,
FileName newProjectRoot )

Constructor for CopyShapeDataFunctor.

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

Definition at line 693 of file ShapeList.cpp.

References m_newProjectRoot, and m_project.

◆ CopyShapeDataFunctor() [2/2]

Isis::ShapeList::CopyShapeDataFunctor::CopyShapeDataFunctor ( const CopyShapeDataFunctor & other)

Copy constructor for CopyShapeDataFunctor.

Parameters
otherThe functor to copy from

Definition at line 705 of file ShapeList.cpp.

◆ ~CopyShapeDataFunctor()

Isis::ShapeList::CopyShapeDataFunctor::~CopyShapeDataFunctor ( )

Destructor for CopyShapeDataFunctor.

Definition at line 714 of file ShapeList.cpp.

Member Function Documentation

◆ operator()()

void * Isis::ShapeList::CopyShapeDataFunctor::operator() ( Shape *const & shapeToCopy)

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

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

Parameters
shapeToCopyThe shape to copy into m_project.
See also
save

Definition at line 726 of file ShapeList.cpp.

◆ operator=()

ShapeList::CopyShapeDataFunctor & Isis::ShapeList::CopyShapeDataFunctor::operator= ( const CopyShapeDataFunctor & rhs)

Assignment operator for CopyShapeDataFunctor.

Parameters
rhsThe functor to assign from
Returns
ShapeList::CopyShapeDataFunctor & A reference to a copy of the functor

Definition at line 739 of file ShapeList.cpp.

References m_project.

Member Data Documentation

◆ m_newProjectRoot

FileName Isis::ShapeList::CopyShapeDataFunctor::m_newProjectRoot
private

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

Definition at line 155 of file ShapeList.h.

Referenced by CopyShapeDataFunctor().

◆ m_project

const Project* Isis::ShapeList::CopyShapeDataFunctor::m_project
private

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

Definition at line 151 of file ShapeList.h.

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


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