#include <Directory.h>
Inheritance diagram for rs::file::Directory:


Public Methods | |
| Directory () | |
| Create a Directory. More... | |
| virtual | ~Directory () |
| void | addFile (const std::string &filename, time_t t) |
| adds a filename to Directory. More... | |
| void | setName (const std::string &dirname) |
| change directory name. More... | |
| const std::string & | name () const |
| get name of directory. More... | |
| size_t | size () const |
| get number of files in directory. More... | |
| std::set< std::string >::const_iterator | begin () const |
| iterator for files in directory. More... | |
| std::set< std::string >::const_iterator | end () const |
| iterator for files in directory. More... | |
| std::string | fullPath (const std::string &filename) const |
| return full path name of a file. More... | |
| time_t | oldest () const |
| get time of oldest file in directory. More... | |
| time_t | newest () const |
| get time of newest file in directory. More... | |
| virtual void | save (rs::file::BinaryFile &out) const |
| save directory into BinaryFile. More... | |
| virtual void | load (rs::file::BinaryFile &in, int version) |
| load directory from BinaryFile. More... | |
Private Attributes | |
| std::string | name_ |
| std::set< std::string > | files |
| time_t | oldest_ |
| time_t | newest_ |
Definition at line 67 of file Directory.h.
|
|
Create a Directory.
Definition at line 76 of file Directory.h. |
|
|
Definition at line 77 of file Directory.h. |
|
||||||||||||
|
adds a filename to Directory.
Definition at line 68 of file Directory.cpp. Referenced by rs::file::scanDir_internal(). |
|
|
change directory name.
Definition at line 86 of file Directory.h. Referenced by rs::file::scanDir_internal(). |
|
|
get name of directory.
Definition at line 89 of file Directory.h. Referenced by Directory::fullPath(), and rs::file::loadDirectories(). |
|
|
get number of files in directory.
Definition at line 92 of file Directory.h. |
|
|
iterator for files in directory.
Definition at line 95 of file Directory.h. |
|
|
iterator for files in directory.
Definition at line 97 of file Directory.h. |
|
|
return full path name of a file.
Definition at line 57 of file Directory.cpp. |
|
|
get time of oldest file in directory.
Definition at line 105 of file Directory.h. |
|
|
get time of newest file in directory.
Definition at line 107 of file Directory.h. |
|
|
save directory into BinaryFile.
Implements BinaryStoreable. Definition at line 85 of file Directory.cpp. Referenced by rs::file::saveDirectories(). |
|
||||||||||||
|
load directory from BinaryFile.
Implements BinaryStoreable. Definition at line 97 of file Directory.cpp. Referenced by rs::file::loadDirectories(). |
|
|
Definition at line 69 of file Directory.h. Referenced by Directory::load(), Directory::name(), Directory::save(), and Directory::setName(). |
|
|
Definition at line 70 of file Directory.h. Referenced by Directory::addFile(), Directory::begin(), Directory::end(), Directory::load(), Directory::save(), and Directory::size(). |
|
|
Definition at line 71 of file Directory.h. Referenced by Directory::addFile(), Directory::Directory(), Directory::load(), Directory::oldest(), and Directory::save(). |
|
|
Definition at line 72 of file Directory.h. Referenced by Directory::addFile(), Directory::Directory(), Directory::load(), Directory::newest(), and Directory::save(). |
|
Contact me in case of errors or questions. This documentation is powered by |
(C) 2000-2002 |