18#ifndef _LOG4CXX_FILE_H
19#define _LOG4CXX_FILE_H
53 File(
const std::string& path);
54#if LOG4CXX_WCHAR_T_API
62 File(
const std::wstring& path);
64#if LOG4CXX_CFSTRING_API
122 std::vector<LogString>
list()
const;
161 LOG4CXX_DECLARE_PRIVATE_MEMBER_PTR(FilePrivate, m_priv)
165#define LOG4CXX_FILE(name) File(name)
File(const wchar_t *path)
The file or directory at path.
bool getAutoDelete() const
The value of the autodelete setting.
bool renameTo(const File &newValue) const
Move this file or directory to the path in newValue.
File & setPath(const LogString &newValue)
Use newValue as the file path.
bool deleteFile() const
Attempt to remove this file or directory from persistent storage.
LogString getName() const
The final portion of the file or directory path.
std::vector< LogString > list() const
A list of files if this is a directory, otherwise an empty list.
LogString getParent() const
The path without the final portion.
bool mkdirs() const
Create the directories required for this file path.
~File()
Release resouces used by this.
File(const CFStringRef &path)
The file or directory at path.
File(const std::wstring &path)
The file or directory at path.
const char * getAPRPath() const
The full file or directory path encoded for APR use.
bool exists() const
Is this a path to an existing file or directory?
File & operator=(const File &other)
Replace this with other.
File(const File &other)
A copy of other.
File(const std::string &path)
The file or directory at path.
log4cxx_time_t lastModified() const
The microseconds since 1970-01-01 when the file indicated by this was last modified.
size_t length() const
The size in bytes of the file indicated by this.
File(const char *path)
The file or directory at path.
LogString getPath() const
The full file or directory path.
bool hasPath() const
Has a path been set?
void setAutoDelete(bool newValue)
Use newValue for whether the file is to be deleted when this object is destroyed.
const struct __CFString * CFStringRef
Definition logstring.h:30
std::basic_string< logchar > LogString
Definition logstring.h:51