WRENCH  1.10
Cyberinfrastructure Simulation Workbench
Overview Installation Getting Started WRENCH 101 WRENCH 102
FileAlreadyBeingCopied.h
1 
10 #ifndef WRENCH_FILE_ALREADY_BEING_COPIED_H
11 #define WRENCH_FILE_ALREADY_BEING_COPIED_H
12 
13 #include <set>
14 #include <string>
15 
16 #include "wrench/workflow/failure_causes/FailureCause.h"
17 
18 namespace wrench {
19 
20  class WorkflowFile;
21  class FileLocation;
22 
23  /***********************/
25  /***********************/
26 
27  class FileLocation;
28 
32  class FileAlreadyBeingCopied : public FailureCause {
33 
34 
35  public:
36  /***********************/
38  /***********************/
39  FileAlreadyBeingCopied(WorkflowFile *file,
40  std::shared_ptr<FileLocation> src,
41  std::shared_ptr<FileLocation> dst);
42  /***********************/
44  /***********************/
45 
46  WorkflowFile *getFile();
47  std::shared_ptr<FileLocation> getSourceLocation();
48  std::shared_ptr<FileLocation> getDestinationLocation();
49  std::string toString();
50 
51  private:
52  WorkflowFile *file;
53  std::shared_ptr<FileLocation> src_location;
54  std::shared_ptr<FileLocation> dst_location;
55  };
56 
57 
58  /***********************/
60  /***********************/
61 };
62 
63 
64 #endif //WRENCH_FILE_ALREADY_BEING_COPIED_H
wrench::getSourceLocation
std::shared_ptr< FileLocation > getSourceLocation()
Getter.
Definition: FileAlreadyBeingCopied.cpp:46
wrench::toString
std::string toString()
Return an error message that describes the failure cause (to be overridden)
Definition: FileLocation.cpp:116
wrench
Definition: Alarm.cpp:20
wrench::getDestinationLocation
std::shared_ptr< FileLocation > getDestinationLocation()
Getter.
Definition: FileAlreadyBeingCopied.cpp:54