#include <FileDescriptor.h>
FileDescriptor class contains information about a file that can be held locally to accomplish this it stores the fragments and its unique fileid
FileDescriptor::FileDescriptor |
( |
string |
_fileID, |
|
|
vector< Fragment > |
_fragments |
|
) |
| |
FileDescriptor::FileDescriptor |
( |
string |
_fileID | ) |
|
void FileDescriptor::addFragment |
( |
Fragment |
frag | ) |
|
Adds a new fragment to the fragments vector
- Parameters
-
string FileDescriptor::getFileID |
( |
| ) |
|
Getter method for fileID
- Returns
- _fileID its fileID
vector< Fragment > FileDescriptor::getFragments |
( |
| ) |
|
Getter method for fragments
- Returns
- _fragments its fragment vector
std::set< std::string > FileDescriptor::getUniqueClouds |
( |
| ) |
|
Returns the unique cloudIDs from the list of fragments.
- Returns
- set of the unique cloudIDs
void FileDescriptor::setFileID |
( |
string |
_fileID | ) |
|
Setter method for fileID
- Parameters
-
void FileDescriptor::setFragments |
( |
vector< Fragment > |
_fragments | ) |
|
Setter method for fragments
- Parameters
-
_fragments | its fragment vector |
The documentation for this class was generated from the following files: