-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Filetree, datasizes, and aging methods implemenation
- Loading branch information
Showing
12 changed files
with
257 additions
and
96 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
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
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,26 @@ | ||
#pragma once | ||
|
||
#include <filestorm/data_sizes.h> | ||
#include <filestorm/filetree.h> | ||
|
||
class Result { | ||
public: | ||
enum Operation { WRITE, READ, DELETE_FILE, CREATE_FILE, CREATE_DIR }; | ||
|
||
private: | ||
int _iteration; | ||
Operation _operation; | ||
std::string _path; | ||
DataSize<DataUnit::B> _size; | ||
std::chrono::nanoseconds _duration; | ||
|
||
public: | ||
Result(int iteration, Operation operation, std::string path, DataSize<DataUnit::B> size, std::chrono::nanoseconds duration) | ||
: _iteration(iteration), _operation(operation), _path(path), _size(size), _duration(duration) {} | ||
|
||
int getIteration() const { return _iteration; } | ||
Operation getOperation() const { return _operation; } | ||
std::string getPath() const { return _path; } | ||
DataSize<DataUnit::B> getSize() const { return _size; } | ||
std::chrono::nanoseconds getDuration() const { return _duration; } | ||
}; |
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
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
Oops, something went wrong.