IBR-DTNSuite
0.12
|
#include <ObservedFile.h>
Public Member Functions | |
ObservedFile (const ibrcommon::File &file) | |
virtual | ~ObservedFile () |
bool | operator== (const ObservedFile &other) const |
bool | operator< (const ObservedFile &other) const |
void | update () |
size_t | getStableCounter () const |
const ibrcommon::File & | getFile () const |
void | findFiles (std::set< ObservedFile > &files) const |
const io::FileHash & | getHash () const |
Definition at line 36 of file ObservedFile.h.
io::ObservedFile::ObservedFile | ( | const ibrcommon::File & | file) |
Definition at line 41 of file ObservedFile.cpp.
References update().
|
virtual |
Definition at line 47 of file ObservedFile.cpp.
void io::ObservedFile::findFiles | ( | std::set< ObservedFile > & | files) | const |
recursive list all files in this directory
Definition at line 79 of file ObservedFile.cpp.
References findFiles(), getFile(), io::FATFile::getFiles(), ibrcommon::File::getFiles(), ibrcommon::File::isDirectory(), and ibrcommon::File::isSystem().
Referenced by findFiles(), and main().
const ibrcommon::File & io::ObservedFile::getFile | ( | ) | const |
return the corresponding file reference
Definition at line 74 of file ObservedFile.cpp.
Referenced by findFiles(), main(), operator<(), operator==(), and io::TarUtils::write().
const io::FileHash & io::ObservedFile::getHash | ( | ) | const |
Returns the hash of the last update() call
Definition at line 51 of file ObservedFile.cpp.
Referenced by main().
size_t io::ObservedFile::getStableCounter | ( | ) | const |
returns the number of update() calls this file is stable
Definition at line 56 of file ObservedFile.cpp.
Referenced by main().
bool io::ObservedFile::operator< | ( | const ObservedFile & | other) | const |
Definition at line 135 of file ObservedFile.cpp.
References getFile().
bool io::ObservedFile::operator== | ( | const ObservedFile & | other) | const |
Definition at line 140 of file ObservedFile.cpp.
References getFile().
void io::ObservedFile::update | ( | ) |
check if the file has changed
Definition at line 122 of file ObservedFile.cpp.
Referenced by main(), and ObservedFile().