iphreeqc/unit/FileTest.h
Scott R Charlton 1e8bc19acb working on multi_punch tests
git-svn-id: svn://136.177.114.72/svn_GW/IPhreeqc/branches/multi_punch@7945 1feff8c3-07ed-0310-ac33-dd36852eb9cd
2013-08-17 06:01:58 +00:00

32 lines
614 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);
protected:
std::string _fn;
};
#endif // FILETEST_H_INCLUDED