46 NEOLIB_EXPORT std::string
tidy_path(std::string aPath);
47 NEOLIB_EXPORT std::wstring
tidy_path(std::wstring aPath);
48 NEOLIB_EXPORT std::string
convert_path(
const std::wstring& aString);
49 NEOLIB_EXPORT std::wstring
convert_path(
const std::string& aString);
50 NEOLIB_EXPORT
const std::string&
create_path(
const std::string& aPath);
51 NEOLIB_EXPORT
const std::wstring&
create_path(
const std::wstring& aPath);
52 NEOLIB_EXPORT std::string
create_file(
const std::string& aFileName);
53 NEOLIB_EXPORT
void create_file(
const std::wstring& aFileName);
56 NEOLIB_EXPORT std::time_t
file_date(
const std::string& aPath);
57 NEOLIB_EXPORT std::time_t
file_date(
const std::wstring& aPath);
58 NEOLIB_EXPORT std::string
file_ext(
const std::string& aPath);
59 NEOLIB_EXPORT std::wstring
file_ext(
const std::wstring& aPath);
62 NEOLIB_EXPORT
unsigned long file_size(
const std::string& aPath);
63 NEOLIB_EXPORT
unsigned long file_size(
const std::wstring& aPath);
67 NEOLIB_EXPORT
bool move_file(
const std::string& aPathFrom,
const std::string& aPathTo);
80 handle(FILE* aHandle) : iHandle(aHandle) {}
81 ~handle() {
if (iHandle != NULL) fclose(iHandle); }
86 simple_file(
const std::string& aPath,
const std::string& aMode);
88 simple_file(
const std::wstring& aPath,
const std::wstring& aMode);
92 bool valid()
const {
return iFile && iFile->iHandle != NULL; }
93 operator std::FILE*()
const {
return iFile ? iFile->iHandle : NULL; }
95 int error()
const {
return iError; }
98 std::shared_ptr<handle> iFile;
simple_file(const std::string &aPath, const std::string &aMode)
NEOLIB_EXPORT unsigned long long large_file_size(const std::string &aPath)
NEOLIB_EXPORT std::time_t file_date(const std::string &aPath)
NEOLIB_EXPORT const std::string & create_path(const std::string &aPath)
NEOLIB_EXPORT std::string user_settings_directory()
NEOLIB_EXPORT std::string user_documents_directory()
NEOLIB_EXPORT std::string tidy_path(std::string aPath)
NEOLIB_EXPORT std::string program_file()
NEOLIB_EXPORT std::string convert_path(const std::wstring &aString)
NEOLIB_EXPORT unsigned long file_size(const std::string &aPath)
NEOLIB_EXPORT int large_file_seek(FILE *aStream, long long aOffset, int aOrigin)
NEOLIB_EXPORT std::string create_file(const std::string &aFileName)
NEOLIB_EXPORT bool can_read_file(const std::string &aPath)
NEOLIB_EXPORT std::string file_ext(const std::string &aPath)
NEOLIB_EXPORT bool move_file(const std::string &aPathFrom, const std::string &aPathTo)
NEOLIB_EXPORT bool file_exists(const std::string &aPath)
NEOLIB_EXPORT std::string program_directory()