![]() |
Project
|
#include <FileWatcher.h>
Public Member Functions | |
FileWatcher (const std::vector< std::string > &path, const std::vector< std::string > &ext) | |
stop guard | |
void | changeFolder (const std::string &path) |
switch to observe other folder | |
void | changeFolder (const std::vector< std::string > &paths) |
switch to observe other folders | |
void | saveCurrentFileToFolder (const std::string &destinationFolder) |
copies | |
int | getSize () const |
include guards (so >=2 ) | |
int | getPos () const |
include guards -> 0 points to mLowGuard | |
void | setFirst () |
void | setLast () |
void | setNext () |
void | setPrev () |
void | rollToNext () |
round robin next item | |
bool | refresh () |
reads folder content, updates current if points to not existing file | |
std::string | currentItem () const |
name of the file (without path) but guards replaced with file names | |
void | setCurrentItem (int no) |
sets using index | |
std::string | currentFilePath () const |
name of the file (with path) but guards replaced with file names | |
Definition at line 28 of file FileWatcher.h.
FileWatcher::FileWatcher | ( | const std::vector< std::string > & | path, |
const std::vector< std::string > & | ext | ||
) |
stop guard
Definition at line 31 of file FileWatcher.cxx.
void FileWatcher::changeFolder | ( | const std::string & | path | ) |
switch to observe other folder
Definition at line 41 of file FileWatcher.cxx.
void FileWatcher::changeFolder | ( | const std::vector< std::string > & | paths | ) |
switch to observe other folders
Definition at line 56 of file FileWatcher.cxx.
std::string FileWatcher::currentFilePath | ( | ) | const |
name of the file (with path) but guards replaced with file names
Definition at line 181 of file FileWatcher.cxx.
string FileWatcher::currentItem | ( | ) | const |
name of the file (without path) but guards replaced with file names
Definition at line 87 of file FileWatcher.cxx.
int FileWatcher::getPos | ( | ) | const |
include guards -> 0 points to mLowGuard
Definition at line 138 of file FileWatcher.cxx.
int FileWatcher::getSize | ( | ) | const |
include guards (so >=2 )
Definition at line 133 of file FileWatcher.cxx.
bool FileWatcher::refresh | ( | ) |
reads folder content, updates current if points to not existing file
Definition at line 143 of file FileWatcher.cxx.
void FileWatcher::rollToNext | ( | ) |
round robin next item
Definition at line 101 of file FileWatcher.cxx.
void FileWatcher::saveCurrentFileToFolder | ( | const std::string & | destinationFolder | ) |
copies
Definition at line 201 of file FileWatcher.cxx.
sets using index
Definition at line 174 of file FileWatcher.cxx.
void FileWatcher::setFirst | ( | ) |
Definition at line 113 of file FileWatcher.cxx.
void FileWatcher::setLast | ( | ) |
Definition at line 118 of file FileWatcher.cxx.
void FileWatcher::setNext | ( | ) |
Definition at line 123 of file FileWatcher.cxx.
void FileWatcher::setPrev | ( | ) |
Definition at line 128 of file FileWatcher.cxx.