ibrcommon::File Class Reference

#include <File.h>

Inheritance diagram for ibrcommon::File:

ibrcommon::TemporaryFile

List of all members.

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)


Detailed Description

Definition at line 25 of file File.h.


Constructor & Destructor Documentation

ibrcommon::File::File (  ) 

Definition at line 19 of file File.cpp.

Referenced by getParent().

ibrcommon::File::File ( const string  path  ) 

Definition at line 30 of file File.cpp.

References update().

ibrcommon::File::~File (  )  [virtual]

Definition at line 86 of file File.cpp.


Member Function Documentation

unsigned char ibrcommon::File::getType (  )  const

Definition at line 89 of file File.cpp.

int ibrcommon::File::getFiles ( list< File > &  files  ) 

Definition at line 94 of file File.cpp.

References getPath(), and isDirectory().

Referenced by main(), and remove().

bool ibrcommon::File::isSystem (  )  const

Definition at line 116 of file File.cpp.

Referenced by main(), and remove().

bool ibrcommon::File::isDirectory (  )  const

Definition at line 122 of file File.cpp.

Referenced by getFiles(), and remove().

string ibrcommon::File::getPath (  )  const

int ibrcommon::File::remove ( bool  recursive = false  ) 

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

Definition at line 179 of file File.cpp.

References File().

Referenced by createDirectory().

bool ibrcommon::File::exists (  )  const

void ibrcommon::File::update (  ) 

Definition at line 56 of file File.cpp.

Referenced by createDirectory(), and File().

size_t ibrcommon::File::size (  )  const

void ibrcommon::File::createDirectory ( File path  )  [static]

Definition at line 185 of file File.cpp.

References exists(), getParent(), getPath(), and update().

Referenced by createBundleStorage().


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

Generated on Fri Jul 30 09:15:36 2010 for IBR-DTNSuite by  doxygen 1.5.6