mirror of
https://git.gfz-potsdam.de/naaice/iphreeqc.git
synced 2025-12-15 16:18:22 +01:00
git-svn-id: svn://136.177.114.72/svn_GW/IPhreeqc/branches/multi_punch@7976 1feff8c3-07ed-0310-ac33-dd36852eb9cd
33 lines
635 B
C++
33 lines
635 B
C++
#if !defined(FILETEST_H_INCLUDED)
|
|
#define FILETEST_H_INCLUDED
|
|
|
|
#include <string>
|
|
|
|
#if defined(_WIN32) || defined(__CYGWIN32__)
|
|
// DeleteFile defined in <windows.h>
|
|
#else
|
|
int DeleteFile(const char* szPathName);
|
|
#endif
|
|
|
|
bool FileExists(const char *szPathName);
|
|
size_t FileSize(const char *szPathName);
|
|
|
|
class FileTest
|
|
{
|
|
public:
|
|
FileTest(std::string fn);
|
|
~FileTest(void);
|
|
|
|
std::string GetName(void);
|
|
bool RemoveExisting(void);
|
|
bool VerifyMissing(void);
|
|
bool VerifyExists(void);
|
|
bool Exists(void);
|
|
int Delete(void);
|
|
size_t Size(void);
|
|
|
|
protected:
|
|
std::string _fn;
|
|
};
|
|
|
|
#endif // FILETEST_H_INCLUDED
|