-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add phase 4 and operator<< implementation
- Fix previous existing phases needed for phase 4 - Add helper function for saving output Co-authored-by: claudiolor <[email protected]>
- Loading branch information
1 parent
6bdd40d
commit a598490
Showing
3 changed files
with
201 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
// | ||
// Created by claud on 23/06/2020. | ||
// | ||
|
||
#ifndef PARALLEL_DFS_DAG_OUTPUTFILEEXCEPTION_H | ||
#define PARALLEL_DFS_DAG_OUTPUTFILEEXCEPTION_H | ||
|
||
using namespace std; | ||
|
||
class OutputFileException : exception { | ||
public: | ||
OutputFileException() : message("Unable to open the output file") {} | ||
explicit OutputFileException(const char * message) : message(message) {} | ||
|
||
const char * what() { | ||
return message; | ||
} | ||
private: | ||
const char * message; | ||
}; | ||
|
||
#endif //PARALLEL_DFS_DAG_OUTPUTFILEEXCEPTION_H |
Oops, something went wrong.