04882c2326
- aggiornamento interfacce.
33 lines
1.2 KiB
C++
33 lines
1.2 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 bool FileExtensionMatches( const std::string& sFile, const std::string& sExt) ;
|
|
EGN_EXPORT bool FindFirstFileEgt( const std::string& sFileSpec, std::string& sFileName) ;
|
|
EGN_EXPORT bool EmptyDirectory( const std::string& sDir) ;
|