2011-06-20 14:41:04 +03:00
|
|
|
#pragma once
|
2011-12-14 00:23:17 +03:00
|
|
|
|
|
|
|
|
2011-06-20 14:41:04 +03:00
|
|
|
|
2011-06-22 15:44:28 +03:00
|
|
|
/*
|
|
|
|
* CFileUtility.cpp, part of VCMI engine
|
|
|
|
*
|
|
|
|
* Authors: listed in file AUTHORS in main folder
|
|
|
|
*
|
|
|
|
* License: GNU General Public License v2.0 or later
|
|
|
|
* Full text of license available in license.txt file, in main folder
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2011-06-20 14:41:04 +03:00
|
|
|
/// Struct which stores name, date and a value which says if the file is located in LOD
|
|
|
|
struct FileInfo
|
|
|
|
{
|
|
|
|
std::string name; // file name with full path and extension
|
|
|
|
std::time_t date;
|
|
|
|
bool inLod; //tells if this file is located in Lod
|
|
|
|
};
|
|
|
|
|
2011-12-14 00:23:17 +03:00
|
|
|
class DLL_LINKAGE CFileUtility
|
2011-06-20 14:41:04 +03:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
CFileUtility(void);
|
|
|
|
~CFileUtility(void);
|
|
|
|
|
|
|
|
static void getFilesWithExt(std::vector<FileInfo> &out, const std::string &dirname, const std::string &ext);
|
|
|
|
};
|
|
|
|
|