mergerfs/src/branches2.hpp
Antonio SJ Musumeci 99115da9f8 branches2.hpp
2024-02-04 22:27:13 -06:00

32 lines
693 B
C++

#pragma once
#include "branch2.hpp"
#include "branch_tier.hpp"
#include "toml.hpp"
#include <vector>
class Branches2
{
public:
Branches2();
Branches2(toml::value const &);
public:
uint64_t min_free_space;
public:
int clonepath(ghc::filesystem::path basepath,
ghc::filesystem::path fusepath);
public:
std::vector<BranchTier>::iterator begin() { return _branches.begin(); }
std::vector<BranchTier>::iterator end() { return _branches.end(); }
std::vector<BranchTier>::const_iterator begin() const { return _branches.begin(); }
std::vector<BranchTier>::const_iterator end() const { return _branches.end(); }
private:
std::vector<BranchTier> _branches;
};