|
Apache Log4cxx
Version 2.0.0
|
Holds the path to a file or directory. More...
#include <file.h>
Public Member Functions | |
| File () | |
| An empty path. | |
| File (const char *path) | |
The file or directory at path. | |
| File (const std::string &path) | |
The file or directory at path. | |
| File (const wchar_t *path) | |
The file or directory at path. | |
| File (const std::wstring &path) | |
The file or directory at path. | |
| File (const CFStringRef &path) | |
The file or directory at path. | |
| File (const File &other) | |
A copy of other. | |
| File & | operator= (const File &other) |
Replace this with other. | |
| ~File () | |
| Release resouces used by this. | |
| bool | hasPath () const |
| Has a path been set? | |
| bool | exists () const |
| Is this a path to an existing file or directory? | |
| size_t | length () const |
| The size in bytes of the file indicated by this. | |
| log4cxx_time_t | lastModified () const |
| The microseconds since 1970-01-01 when the file indicated by this was last modified. | |
| LogString | getName () const |
| The final portion of the file or directory path. | |
| LogString | getPath () const |
| The full file or directory path. | |
| const char * | getAPRPath () const |
| The full file or directory path encoded for APR use. | |
| File & | setPath (const LogString &newValue) |
Use newValue as the file path. | |
| std::vector< LogString > | list () const |
| A list of files if this is a directory, otherwise an empty list. | |
| bool | deleteFile () const |
| Attempt to remove this file or directory from persistent storage. | |
| bool | renameTo (const File &newValue) const |
Move this file or directory to the path in newValue. | |
| LogString | getParent () const |
| The path without the final portion. | |
| bool | mkdirs () const |
| Create the directories required for this file path. | |
| void | setAutoDelete (bool newValue) |
Use newValue for whether the file is to be deleted when this object is destroyed. | |
| bool | getAutoDelete () const |
| The value of the autodelete setting. | |
Holds the path to a file or directory.
| log4cxx::File::File | ( | ) |
An empty path.
| log4cxx::File::File | ( | const char * | path | ) |
The file or directory at path.
| log4cxx::File::File | ( | const std::string & | path | ) |
The file or directory at path.
| log4cxx::File::File | ( | const wchar_t * | path | ) |
The file or directory at path.
| log4cxx::File::File | ( | const std::wstring & | path | ) |
The file or directory at path.
| log4cxx::File::File | ( | const CFStringRef & | path | ) |
The file or directory at path.
| log4cxx::File::File | ( | const File & | other | ) |
A copy of other.
| log4cxx::File::~File | ( | ) |
Release resouces used by this.
| bool log4cxx::File::deleteFile | ( | ) | const |
Attempt to remove this file or directory from persistent storage.
| bool log4cxx::File::exists | ( | ) | const |
Is this a path to an existing file or directory?
| const char * log4cxx::File::getAPRPath | ( | ) | const |
The full file or directory path encoded for APR use.
| bool log4cxx::File::getAutoDelete | ( | ) | const |
The value of the autodelete setting.
If true, this file will be deleted when the destructor is called.
| LogString log4cxx::File::getName | ( | ) | const |
The final portion of the file or directory path.
| LogString log4cxx::File::getParent | ( | ) | const |
The path without the final portion.
| LogString log4cxx::File::getPath | ( | ) | const |
The full file or directory path.
| bool log4cxx::File::hasPath | ( | ) | const |
Has a path been set?
| log4cxx_time_t log4cxx::File::lastModified | ( | ) | const |
The microseconds since 1970-01-01 when the file indicated by this was last modified.
| size_t log4cxx::File::length | ( | ) | const |
The size in bytes of the file indicated by this.
May not be accurate if file is current open.
| std::vector< LogString > log4cxx::File::list | ( | ) | const |
A list of files if this is a directory, otherwise an empty list.
| bool log4cxx::File::mkdirs | ( | ) | const |
Create the directories required for this file path.
| bool log4cxx::File::renameTo | ( | const File & | newValue | ) | const |
Move this file or directory to the path in newValue.
| void log4cxx::File::setAutoDelete | ( | bool | newValue | ) |
Use newValue for whether the file is to be deleted when this object is destroyed.
| newValue | If true, delete file upon destruction. |