mirror of
https://github.com/trapexit/mergerfs.git
synced 2024-12-03 14:03:37 +08:00
32 lines
693 B
C++
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;
|
|
};
|