Files
Include/EGnFileUtils.h
T
Dario Sassi c4fa83c56d Include :
- aggiornamenti.
2016-02-05 10:55:26 +00:00

40 lines
1.7 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 CopyFileEgt( const std::string& sFile, const std::string& sNewFile) ;
EGN_EXPORT bool RenameFile( const std::string& sFile, const std::string& sNewFile) ;
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 std::string GetFileName( const std::string& sPath) ;
EGN_EXPORT std::string GetFileTitleEgt( const std::string& sPath) ;
EGN_EXPORT std::string GetDirectory( const std::string& sPath) ;
EGN_EXPORT bool ExistsDirectory( const std::string& sDir) ;
EGN_EXPORT bool EmptyDirectory( const std::string& sDir) ;