|
Apache Log4cxx
Version 1.7.0
|
An abstract representation of file and directory path names. More...
#include <file.h>
Public Member Functions | |
| File () | |
| Construct a new instance. | |
| File (const char *path) | |
| Construct a new instance. | |
| File (const std::string &path) | |
| Construct a new instance. | |
| File (const wchar_t *path) | |
| Construct a new instance. | |
| File (const std::wstring &path) | |
| Construct a new instance. | |
| File (const UniChar *path) | |
| Construct a new instance. | |
| File (const std::basic_string< UniChar > &path) | |
| Construct a new instance. | |
| File (const CFStringRef &path) | |
| Construct a new instance. | |
| File (const File &src) | |
| Copy constructor. | |
| File & | operator= (const File &src) |
| Assignment operator. | |
| ~File () | |
| Destructor. | |
| bool | exists () const |
| Determines if file exists. | |
| size_t | length () const |
| Provides the length of the file. | |
| log4cxx_time_t | lastModified () const |
| Provides the last modification date. | |
| LogString | getName () const |
| Provides the final portion of file path. | |
| LogString | getPath () const |
| Provides the file path. | |
| const char * | getAPRPath () const |
| Provides the file path. | |
| File & | setPath (const LogString &newVAlue) |
Use newValue as the file path. | |
| log4cxx_status_t | open (apr_file_t **file, int flags, int perm, helpers::Pool &1) const |
| Open this file. | |
| std::vector< LogString > | list () const |
| List files if current file is a directory. | |
| bool | deleteFile () const |
| Delete this file. | |
| bool | renameTo (const File &dest) const |
| Rename this file. | |
| LogString | getParent () const |
| Provides the path of parent directory. | |
| 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 |
| Provides the value of the autodelete setting. | |
| bool | exists (helpers::Pool &1) const |
| size_t | length (helpers::Pool &1) const |
| log4cxx_time_t | lastModified (helpers::Pool &1) const |
| std::vector< LogString > | list (helpers::Pool &1) const |
| bool | deleteFile (helpers::Pool &1) const |
| bool | renameTo (const File &dest, helpers::Pool &1) const |
| LogString | getParent (helpers::Pool &1) const |
| bool | mkdirs (helpers::Pool &1) const |
An abstract representation of file and directory path names.
| log4cxx::File::File | ( | ) |
Construct a new instance.
| log4cxx::File::File | ( | const char * | path | ) |
Construct a new instance.
Use setPath to specify path using a LogString.
| path | file path in local encoding. |
| log4cxx::File::File | ( | const std::string & | path | ) |
Construct a new instance.
Use setPath to specify path using a LogString.
| path | file path in current encoding. |
| log4cxx::File::File | ( | const wchar_t * | path | ) |
| log4cxx::File::File | ( | const std::wstring & | path | ) |
| log4cxx::File::File | ( | const UniChar * | path | ) |
| log4cxx::File::File | ( | const std::basic_string< UniChar > & | path | ) |
| log4cxx::File::File | ( | const CFStringRef & | path | ) |
| log4cxx::File::File | ( | const File & | src | ) |
Copy constructor.
| log4cxx::File::~File | ( | ) |
Destructor.
| bool log4cxx::File::deleteFile | ( | ) | const |
Delete this file.
| bool log4cxx::File::deleteFile | ( | helpers::Pool & | 1 | ) | const |
| bool log4cxx::File::exists | ( | ) | const |
Determines if file exists.
| bool log4cxx::File::exists | ( | helpers::Pool & | 1 | ) | const |
| const char * log4cxx::File::getAPRPath | ( | ) | const |
Provides the file path.
| bool log4cxx::File::getAutoDelete | ( | ) | const |
Provides the value of the autodelete setting.
If true, this file will be deleted when the destructor is called.
| LogString log4cxx::File::getName | ( | ) | const |
Provides the final portion of file path.
| LogString log4cxx::File::getParent | ( | ) | const |
Provides the path of parent directory.
| LogString log4cxx::File::getParent | ( | helpers::Pool & | 1 | ) | const |
| LogString log4cxx::File::getPath | ( | ) | const |
Provides the file path.
| log4cxx_time_t log4cxx::File::lastModified | ( | ) | const |
Provides the last modification date.
| log4cxx_time_t log4cxx::File::lastModified | ( | helpers::Pool & | 1 | ) | const |
| size_t log4cxx::File::length | ( | ) | const |
Provides the length of the file.
May not be accurate if file is current open.
| size_t log4cxx::File::length | ( | helpers::Pool & | 1 | ) | const |
| std::vector< LogString > log4cxx::File::list | ( | ) | const |
List files if current file is a directory.
| std::vector< LogString > log4cxx::File::list | ( | helpers::Pool & | 1 | ) | const |
| bool log4cxx::File::mkdirs | ( | ) | const |
Create the directories required for this file path.
| bool log4cxx::File::mkdirs | ( | helpers::Pool & | 1 | ) | const |
| log4cxx_status_t log4cxx::File::open | ( | apr_file_t ** | file, |
| int | flags, | ||
| int | perm, | ||
| helpers::Pool & | 1 ) const |
Open this file.
See apr_file_open for details.
| file | allocated APR file handle. |
| flags | flags. |
| perm | permissions. |
| bool log4cxx::File::renameTo | ( | const File & | dest | ) | const |
Rename this file.
| dest | new path for file. |
| bool log4cxx::File::renameTo | ( | const File & | dest, |
| helpers::Pool & | 1 ) const |
| void log4cxx::File::setAutoDelete | ( | bool | newValue | ) |
Use newValue for whether the file is to be deleted when this object is destroyed.
| autoDelete | If true, delete file upon destruction. |