18#ifndef _LOG4CXX_FILE_H
19#define _LOG4CXX_FILE_H
56 File(
const std::string& path);
57#if LOG4CXX_WCHAR_T_API
67 File(
const std::wstring& path);
69#if LOG4CXX_UNICHAR_API || LOG4CXX_LOGCHAR_IS_UNICHAR
79 File(
const std::basic_string<UniChar>& path);
81#if LOG4CXX_CFSTRING_API
136#if LOG4CXX_ABI_VERSION <= 15
146 [[ deprecated(
"open is no longer supported" ) ]]
154 std::vector<LogString>
list()
const;
193#if LOG4CXX_ABI_VERSION <= 15
195 [[ deprecated(
"Pool is no longer required" ) ]]
198 [[ deprecated(
"Pool is no longer required" ) ]]
201 [[ deprecated(
"Pool is no longer required" ) ]]
204 [[ deprecated(
"Pool is no longer required" ) ]]
207 [[ deprecated(
"Pool is no longer required" ) ]]
210 [[ deprecated(
"Pool is no longer required" ) ]]
213 [[ deprecated(
"Pool is no longer required" ) ]]
216 [[ deprecated(
"Pool is no longer required" ) ]]
220 LOG4CXX_DECLARE_PRIVATE_MEMBER_PTR(FilePrivate, m_priv)
224#define LOG4CXX_FILE(name) File(name)
bool renameTo(const File &dest, helpers::Pool &1) const
File(const wchar_t *path)
Construct a new instance.
bool getAutoDelete() const
Provides the value of the autodelete setting.
LogString getParent(helpers::Pool &1) const
File(const std::basic_string< UniChar > &path)
Construct a new instance.
bool deleteFile() const
Delete this file.
LogString getName() const
Provides the final portion of file path.
bool mkdirs(helpers::Pool &1) const
std::vector< LogString > list() const
List files if current file is a directory.
File & operator=(const File &src)
Assignment operator.
LogString getParent() const
Provides the path of parent directory.
bool mkdirs() const
Create the directories required for this file path.
File & setPath(const LogString &newVAlue)
Use newValue as the file path.
size_t length(helpers::Pool &1) const
log4cxx_status_t open(apr_file_t **file, int flags, int perm, helpers::Pool &1) const
Open this file.
File(const CFStringRef &path)
Construct a new instance.
File(const std::wstring &path)
Construct a new instance.
std::vector< LogString > list(helpers::Pool &1) const
const char * getAPRPath() const
Provides the file path.
bool deleteFile(helpers::Pool &1) const
bool exists() const
Determines if file exists.
log4cxx_time_t lastModified(helpers::Pool &1) const
File(const File &src)
Copy constructor.
bool exists(helpers::Pool &1) const
File()
Construct a new instance.
bool renameTo(const File &dest) const
Rename this file.
File(const std::string &path)
Construct a new instance.
log4cxx_time_t lastModified() const
Provides the last modification date.
size_t length() const
Provides the length of the file.
File(const char *path)
Construct a new instance.
LogString getPath() const
Provides the file path.
void setAutoDelete(bool newValue)
Use newValue for whether the file is to be deleted when this object is destroyed.
File(const UniChar *path)
Construct a new instance.
const struct __CFString * CFStringRef
Definition logstring.h:30
std::basic_string< logchar > LogString
Definition logstring.h:60
unsigned short UniChar
Definition logstring.h:38