#include <File.h>

Public Member Functions | |
| File () | |
| File (const string path) | |
| virtual | ~File () |
| unsigned char | getType () const |
| int | getFiles (list< File > &files) |
| bool | isSystem () const |
| bool | isDirectory () const |
| string | getPath () const |
| int | remove (bool recursive=false) |
| File | get (string filename) const |
| File | getParent () const |
| bool | exists () const |
| void | update () |
| size_t | size () const |
Static Public Member Functions | |
| static void | createDirectory (File &path) |
Definition at line 25 of file File.h.
| ibrcommon::File::File | ( | ) |
| ibrcommon::File::File | ( | const string | path | ) |
| int ibrcommon::File::getFiles | ( | list< File > & | files | ) |
| bool ibrcommon::File::isSystem | ( | ) | const |
| bool ibrcommon::File::isDirectory | ( | ) | const |
| string ibrcommon::File::getPath | ( | ) | const |
Definition at line 128 of file File.cpp.
Referenced by ibrcommon::TmpFileBLOB::clear(), dtn::daemon::StatisticLogger::componentUp(), createDirectory(), get(), dtn::core::SQLiteBundleStorage::get(), getFiles(), dtn::core::SimpleBundleStorage::BundleContainer::Holder::Holder(), dtn::core::SimpleBundleStorage::BundleContainer::Holder::invokeStore(), main(), remove(), dtn::core::SQLiteBundleStorage::remove(), size(), dtn::core::SQLiteBundleStorage::SQLiteBundleStorage(), and dtn::core::SQLiteBundleStorage::store().
| int ibrcommon::File::remove | ( | bool | recursive = false |
) |
Definition at line 141 of file File.cpp.
References getFiles(), getPath(), isDirectory(), and isSystem().
Referenced by ibrcommon::TmpFileBLOB::clear(), main(), dtn::core::SimpleBundleStorage::BundleContainer::Holder::~Holder(), and ibrcommon::TmpFileBLOB::~TmpFileBLOB().
| File ibrcommon::File::get | ( | string | filename | ) | const |
Definition at line 133 of file File.cpp.
References getPath().
Referenced by dtn::core::SQLiteBundleStorage::SQLiteBundleStorage().
| File ibrcommon::File::getParent | ( | ) | const |
| bool ibrcommon::File::exists | ( | ) | const |
Definition at line 47 of file File.cpp.
Referenced by dtn::daemon::StatisticLogger::componentUp(), createBundleStorage(), and createDirectory().
| void ibrcommon::File::update | ( | ) |
| size_t ibrcommon::File::size | ( | ) | const |
Definition at line 200 of file File.cpp.
References getPath().
Referenced by dtn::core::SimpleBundleStorage::BundleContainer::Holder::Holder(), and dtn::core::SimpleBundleStorage::BundleContainer::Holder::invokeStore().
| void ibrcommon::File::createDirectory | ( | File & | path | ) | [static] |
Definition at line 185 of file File.cpp.
References exists(), getParent(), getPath(), and update().
Referenced by createBundleStorage().
1.5.6