1
0
Fork 0
mirror of https://github.com/KingDuckZ/dindexer.git synced 2025-08-19 15:39:46 +00:00

Add ShortFileRecordData struct to hold the file list in DirTree.

This commit is contained in:
King_DuckZ 2016-03-04 21:57:09 +01:00
parent 1956594c01
commit d579b311f2
6 changed files with 57 additions and 25 deletions

View file

@ -23,19 +23,19 @@
#include <vector>
namespace mchlib {
struct FileRecordData;
struct ShortFileRecordData;
namespace scantask {
class DirTree : public Base<std::vector<FileRecordData>> {
class DirTree : public Base<std::vector<ShortFileRecordData>> {
public:
typedef std::vector<FileRecordData> PathList;
typedef std::vector<ShortFileRecordData> PathList;
explicit DirTree ( std::string parRoot );
virtual ~DirTree ( void ) noexcept = default;
private:
virtual void on_data_destroy ( PathList& parData );
virtual void on_data_create ( PathList& parData );
virtual void on_data_destroy ( PathList& parData ) override;
virtual void on_data_create ( PathList& parData ) override;
std::string m_root;
};