a75ded90fe
- aggiunto EgtUUID e Writer - Scan diventato Scanner.
37 lines
1.5 KiB
C++
37 lines
1.5 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 bool ExistsDirectory( const std::string& sDir) ;
|
|
EGN_EXPORT bool EmptyDirectory( const std::string& sDir) ;
|