wrench::FileAlreadyBeingCopied Class Reference

A "file is already being copied" failure cause. More...

#include <FileAlreadyBeingCopied.h>

Inheritance diagram for wrench::FileAlreadyBeingCopied:
wrench::FailureCause

Public Member Functions

 FileAlreadyBeingCopied (WorkflowFile *file, std::shared_ptr< FileLocation > src, std::shared_ptr< FileLocation > dst)
 Constructor. More...
 
std::shared_ptr< FileLocationgetDestinationLocation ()
 Getter. More...
 
WorkflowFilegetFile ()
 Getter. More...
 
std::shared_ptr< FileLocationgetSourceLocation ()
 Getter. More...
 
std::string toString ()
 Get the human-readable failure message. More...
 

Detailed Description

A "file is already being copied" failure cause.

Constructor & Destructor Documentation

◆ FileAlreadyBeingCopied()

wrench::FileAlreadyBeingCopied::FileAlreadyBeingCopied ( WorkflowFile file,
std::shared_ptr< FileLocation src,
std::shared_ptr< FileLocation dst 
)

Constructor.

Parameters
filethe file that is already being copied
srcthe source location
dstthe destination location

Member Function Documentation

◆ getDestinationLocation()

std::shared_ptr< FileLocation > wrench::FileAlreadyBeingCopied::getDestinationLocation ( )

Getter.

Returns
the source location

◆ getFile()

WorkflowFile * wrench::FileAlreadyBeingCopied::getFile ( )

Getter.

Returns
the file

◆ getSourceLocation()

std::shared_ptr< FileLocation > wrench::FileAlreadyBeingCopied::getSourceLocation ( )

Getter.

Returns
the source location

◆ toString()

std::string wrench::FileAlreadyBeingCopied::toString ( )
virtual

Get the human-readable failure message.

Returns
the message

Implements wrench::FailureCause.


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