mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-11-20 23:16:27 -05:00
22 lines
369 B
C++
22 lines
369 B
C++
|
|
#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);
|
||
|
|
}
|
||
|
|
}
|