Fork of Tangara with customizations
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
tangara-fw/src/database/include/file_gatherer.hpp

34 lines
686 B

/*
* 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