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
106 bool exists(LOG4CXX_NS::helpers::Pool& p)
const;
112 size_t length(LOG4CXX_NS::helpers::Pool& p)
const;
143 int perm, LOG4CXX_NS::helpers::Pool& p)
const;
150 std::vector<LogString>
list(LOG4CXX_NS::helpers::Pool& p)
const;
177 bool mkdirs(LOG4CXX_NS::helpers::Pool& p)
const;
195 static char* convertBackSlashes(
char*);
196 char* getPath(LOG4CXX_NS::helpers::Pool& p)
const;
200#define LOG4CXX_FILE(name) LOG4CXX_NS::File(name)
An abstract representation of file and directory path names.
Definition: file.h:41
File(const wchar_t *path)
Construct a new instance.
bool getAutoDelete() const
Return the value of the autodelete setting.
log4cxx_time_t lastModified(log4cxx::helpers::Pool &p) const
Determines last modification date.
File(const std::basic_string< UniChar > &path)
Construct a new instance.
std::vector< LogString > list(log4cxx::helpers::Pool &p) const
List files if current file is a directory.
LogString getName() const
Get final portion of file path.
bool renameTo(const File &dest, log4cxx::helpers::Pool &p) const
Rename file.
File & operator=(const File &src)
Assignment operator.
LogString getParent(log4cxx::helpers::Pool &p) const
Get path of parent directory.
bool exists(log4cxx::helpers::Pool &p) const
Determines if file exists.
File(const CFStringRef &path)
Construct a new instance.
File(const std::wstring &path)
Construct a new instance.
File & setPath(const LogString &)
Set file path.
bool deleteFile(log4cxx::helpers::Pool &p) const
Delete file.
log4cxx_status_t open(apr_file_t **file, int flags, int perm, log4cxx::helpers::Pool &p) const
Open file.
File(const File &src)
Copy constructor.
File()
Construct a new instance.
File(const std::string &path)
Construct a new instance.
File(const char *path)
Construct a new instance.
void setAutoDelete(bool autoDelete)
Set the file to be deleted when this object is destroyed.
LogString getPath() const
Get file path.
size_t length(log4cxx::helpers::Pool &p) const
Determines length of file.
bool mkdirs(log4cxx::helpers::Pool &p) const
Make directories recursively.
File(const UniChar *path)
Construct a new instance.
#define LOG4CXX_DECLARE_PRIVATE_MEMBER_PTR(T, V)
Definition: log4cxx.h:85
#define LOG4CXX_EXPORT
Definition: log4cxx.h:101
#define LOG4CXX_NS
Definition: log4cxx.h:104
const struct __CFString * CFStringRef
Definition: logstring.h:30
std::basic_string< logchar > LogString
Definition: logstring.h:60
int64_t log4cxx_time_t
log4cxx_time_t - holds the number of microseconds since 1970-01-01
Definition: log4cxx.h:111
int log4cxx_status_t
Definition: log4cxx.h:113
unsigned short UniChar
Definition: logstring.h:38