mergerfs/src/branch_tier.cpp

30 lines
506 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:45 -06:00
type = table.at("type").as_string();
2024-01-28 23:19:24 -06:00
if(type == "literal")
;
else if(type == "glob")
;
else if(type == "scan")
;
2024-01-28 23:03:34 -06:00
fmt::print("{}\n",type);
2024-01-28 22:45:38 -06:00
}
}