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:
parent
1956594c01
commit
d579b311f2
6 changed files with 57 additions and 25 deletions
|
@ -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;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue