filesaver
filesaver::FileSaver Class Reference

#include <FileSaver.h>

Public Member Functions

 INJECT (FileSaver(services::FileSizeService *, services::StorageWorker *, server::Server *))
 
 ~FileSaver ()
 
void start ()
 
void stop ()
 
void join ()
 
void scan (const std::string &filepath)
 
off_t getCurrentSizeAt (const std::string &filepath)
 
bool isPathFinished (boost::filesystem::path &filepath)
 
bool areAllTargetsFinished ()
 
void setNumWorkers (unsigned int numWorkers)
 
std::vector< boost::filesystem::path > getTargets ()
 
unsigned long getNumWorkers ()
 
unsigned long getTotalFiles ()
 
unsigned long getTotalKnownFiles ()
 
double getFilesPerSecond ()
 
long long int getElapsed ()
 

Static Public Member Functions

static std::string getVersion ()
 

Detailed Description

Definition at line 30 of file FileSaver.h.

Constructor & Destructor Documentation

◆ ~FileSaver()

filesaver::FileSaver::~FileSaver ( )

Definition at line 23 of file FileSaver.cpp.

Member Function Documentation

◆ areAllTargetsFinished()

bool filesaver::FileSaver::areAllTargetsFinished ( )

Definition at line 89 of file FileSaver.cpp.

◆ getCurrentSizeAt()

off_t filesaver::FileSaver::getCurrentSizeAt ( const std::string &  filepath)

Definition at line 79 of file FileSaver.cpp.

◆ getElapsed()

long long int filesaver::FileSaver::getElapsed ( )

Definition at line 128 of file FileSaver.cpp.

◆ getFilesPerSecond()

double filesaver::FileSaver::getFilesPerSecond ( )

Definition at line 117 of file FileSaver.cpp.

◆ getNumWorkers()

unsigned long filesaver::FileSaver::getNumWorkers ( )

Definition at line 123 of file FileSaver.cpp.

◆ getTargets()

std::vector< boost::filesystem::path > filesaver::FileSaver::getTargets ( )

Definition at line 102 of file FileSaver.cpp.

◆ getTotalFiles()

unsigned long filesaver::FileSaver::getTotalFiles ( )

Definition at line 107 of file FileSaver.cpp.

◆ getTotalKnownFiles()

unsigned long filesaver::FileSaver::getTotalKnownFiles ( )

Definition at line 112 of file FileSaver.cpp.

◆ getVersion()

std::string filesaver::FileSaver::getVersion ( )
static

Definition at line 138 of file FileSaver.cpp.

◆ INJECT()

filesaver::FileSaver::INJECT ( FileSaver(services::FileSizeService *, services::StorageWorker *, server::Server *)  )

◆ isPathFinished()

bool filesaver::FileSaver::isPathFinished ( boost::filesystem::path &  filepath)

Definition at line 84 of file FileSaver.cpp.

◆ join()

void filesaver::FileSaver::join ( )

Definition at line 46 of file FileSaver.cpp.

◆ scan()

void filesaver::FileSaver::scan ( const std::string &  filepath)

Definition at line 67 of file FileSaver.cpp.

◆ setNumWorkers()

void filesaver::FileSaver::setNumWorkers ( unsigned int  numWorkers)

Definition at line 133 of file FileSaver.cpp.

◆ start()

void filesaver::FileSaver::start ( )

Definition at line 28 of file FileSaver.cpp.

◆ stop()

void filesaver::FileSaver::stop ( )

Definition at line 51 of file FileSaver.cpp.


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