namespace Akenti class File A File object contains a filename and provides methods to return informataion about the name or directory
| | File (const string& filename) Construct this object |
| | getName () const Gets the name of the file |
| | getAbsolutePath () const Gets the absolute path of the file |
| | getParent () const Gets the Parent directory of the file |
| | hasParent () const Checks to see if the file has parent directory |
| | isAbsolute () const Checks to see if the filename is an absolute path form (i |
| | exists () const Checks to see if the file exists or not |
| | isDirectory () const Checks to see if the file exists and is a directory |
| | isFile () const Checks to see if the file exists and is not a directory |
| | list () const Returns a list of the contents of this directory |
| | list (const Filter& filter) const Returns a list of file names after being filtered |
| | mkdir () const Create a directory |
| | paramString () const Returns a string representation for File which is used for debugging purposes |
A File object contains a filename and provides methods to return
informataion about the name or directory. The filename may be either
an absolute pathname or relative to the current working directory. It
may refer to either a plain file or a directory.
Usage:
eg 1). File("Makefile");
eg 2). File("/usr/local/mrt/Certificates");
string getName() const
string getAbsolutePath() const
string getParent() const
bool hasParent() const
bool isAbsolute() const
bool exists() const
bool isDirectory() const
bool isFile() const
vector
Error : file is not a directory
IOException : unable to open directory
vector
Error file is not a directory
IOException if unable to open directory
void mkdir() const
IOException
string paramString() const
alphabetic index hierarchy of classes
this page has been generated automatically by doc++
(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de