IBR-DTNSuite  0.12
io::ObservedFile Class Reference

#include <ObservedFile.h>

Collaboration diagram for io::ObservedFile:
Collaboration graph

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::FilegetFile () const
 
void findFiles (std::set< ObservedFile > &files) const
 
const io::FileHashgetHash () const
 

Detailed Description

Definition at line 36 of file ObservedFile.h.

Constructor & Destructor Documentation

io::ObservedFile::ObservedFile ( const ibrcommon::File file)

Definition at line 41 of file ObservedFile.cpp.

References update().

Here is the call graph for this function:

io::ObservedFile::~ObservedFile ( )
virtual

Definition at line 47 of file ObservedFile.cpp.

Member Function Documentation

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().

Here is the call graph for this function:

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().

Here is the call graph for this function:

bool io::ObservedFile::operator== ( const ObservedFile other) const

Definition at line 140 of file ObservedFile.cpp.

References getFile().

Here is the call graph for this function:

void io::ObservedFile::update ( )

check if the file has changed

Definition at line 122 of file ObservedFile.cpp.

Referenced by main(), and ObservedFile().


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