mergerfs/src/branches2.hpp

32 lines
693 B
C++
Raw Normal View History

2024-01-28 22:38:53 -06:00
#pragma once
2024-01-24 23:21:02 -06:00
#include "branch2.hpp"
2024-01-28 22:32:04 -06:00
#include "branch_tier.hpp"
2024-01-24 23:00:43 -06:00
2024-01-25 20:15:36 -06:00
#include "toml.hpp"
2024-01-25 20:15:30 -06:00
2024-01-24 23:00:43 -06:00
#include <vector>
2024-01-24 23:00:45 -06:00
2024-01-25 07:36:06 -06:00
class Branches2
2024-01-24 23:26:48 -06:00
{
2024-01-25 20:06:23 -06:00
public:
2024-01-25 20:18:33 -06:00
Branches2();
2024-01-25 20:06:23 -06:00
Branches2(toml::value const &);
2024-01-24 23:38:33 -06:00
public:
2024-01-24 23:33:52 -06:00
uint64_t min_free_space;
2024-01-25 07:35:43 -06:00
2024-02-03 23:19:13 -06:00
public:
2024-02-04 22:18:14 -06:00
int clonepath(ghc::filesystem::path basepath,
ghc::filesystem::path fusepath);
2024-02-03 23:19:18 -06:00
2024-02-03 19:48:26 -06:00
public:
std::vector<BranchTier>::iterator begin() { return _branches.begin(); }
std::vector<BranchTier>::iterator end() { return _branches.end(); }
2024-02-04 22:27:12 -06:00
std::vector<BranchTier>::const_iterator begin() const { return _branches.begin(); }
2024-02-04 22:27:13 -06:00
std::vector<BranchTier>::const_iterator end() const { return _branches.end(); }
2024-02-03 23:19:18 -06:00
2024-01-25 07:35:43 -06:00
private:
2024-01-28 22:35:48 -06:00
std::vector<BranchTier> _branches;
2024-01-24 23:26:48 -06:00
};