mirror of
https://github.com/trapexit/mergerfs.git
synced 2024-12-02 21:50:01 +08:00
checkpoint
This commit is contained in:
parent
e769d94e00
commit
479cfafe5a
21
src/branch_tier.cpp
Normal file
21
src/branch_tier.cpp
Normal file
|
@ -0,0 +1,21 @@
|
|||
#include "branch_tier.hpp"
|
||||
|
||||
#include "fmt/core.h"
|
||||
|
||||
BranchTier::BranchTier()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
BranchTier::BranchTier(toml::value const &v_)
|
||||
{
|
||||
auto const &branches = toml::find(v_,"branch").as_array();
|
||||
|
||||
for(auto const &branch : branches)
|
||||
{
|
||||
auto const &table = branch.as_table();
|
||||
|
||||
std::string s = table.at("type").as_string();
|
||||
fmt::print("{}\n",s);
|
||||
}
|
||||
}
|
20
src/branch_tier.hpp
Normal file
20
src/branch_tier.hpp
Normal file
|
@ -0,0 +1,20 @@
|
|||
#pragma once
|
||||
|
||||
#include "branch2.hpp"
|
||||
|
||||
#include "toml.hpp"
|
||||
|
||||
#include <vector>
|
||||
|
||||
class BranchTier
|
||||
{
|
||||
public:
|
||||
BranchTier();
|
||||
BranchTier(toml::value const &);
|
||||
|
||||
public:
|
||||
uint64_t min_free_space;
|
||||
|
||||
private:
|
||||
std::vector<Branch2> _branches;
|
||||
};
|
Loading…
Reference in New Issue
Block a user