mergerfs/src/branch_tier.cpp

24 lines
376 B
C++
Raw Normal View History

2024-01-28 22:45:38 -06:00
#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();
2024-01-28 23:03:34 -06:00
std::string type;
2024-01-28 22:45:38 -06:00
2024-01-28 23:03:34 -06:00
type = table.at("type");
fmt::print("{}\n",type);
2024-01-28 22:45:38 -06:00
}
}