summaryrefslogtreecommitdiff
path: root/src/database/include/file_gatherer.hpp
blob: 133cf81af59bcf3764320441d6bfdf462026b38e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/*
 * Copyright 2023 jacqueline <me@jacqueline.id.au>
 *
 * SPDX-License-Identifier: GPL-3.0-only
 */

#pragma once

#include <deque>
#include <functional>
#include <sstream>
#include <string>

#include "ff.h"

namespace database {

class IFileGatherer {
 public:
  virtual ~IFileGatherer(){};

  virtual auto FindFiles(const std::pmr::string& root,
                         std::function<void(const std::pmr::string&)> cb)
      -> void = 0;
};

class FileGathererImpl : public IFileGatherer {
 public:
  virtual auto FindFiles(const std::pmr::string& root,
                         std::function<void(const std::pmr::string&)> cb)
      -> void override;
};

}  // namespace database