Files
Include/EGnFileUtils.h
T
Dario Sassi 4d4b1f30c4 Include :
- aggiornamenti.
2015-05-19 20:24:10 +00:00

35 lines
1.3 KiB
C++

//----------------------------------------------------------------------------
// EgalTech 2013-2013
//----------------------------------------------------------------------------
// File : EgnFileUtils.h Data : 11.12.13 Versione : 1.4a5
// Contenuto : Prototipi funzioni di utilità sui file.
//
//
//
// Modifiche : 11.12.13 DS Creazione modulo.
//
//
//----------------------------------------------------------------------------
#pragma once
#include <string>
//----------------------- Macro per import/export ----------------------------
#undef EGN_EXPORT
#if defined( I_AM_EGN) // da definirsi solo nella DLL
#define EGN_EXPORT __declspec( dllexport)
#else
#define EGN_EXPORT __declspec( dllimport)
#endif
//-----------------------------------------------------------------------------
EGN_EXPORT bool ExistsFile( const std::string& sFile) ;
EGN_EXPORT bool EraseFile( const std::string& sFile) ;
EGN_EXPORT std::string ChangeFileExtension( const std::string& sFile, const std::string& sNewExt) ;
EGN_EXPORT bool FileExtensionMatches( const std::string& sFile, const std::string& sExt) ;
EGN_EXPORT bool FindFirstFileEgt( const std::string& sFileSpec, std::string& sFileName) ;
EGN_EXPORT bool ExistsDirectory( const std::string& sDir) ;
EGN_EXPORT bool EmptyDirectory( const std::string& sDir) ;