mergerfs/src/branch_tier.cpp

40 lines
626 B
C++
Raw Normal View History

2024-01-28 22:45:38 -06:00
#include "branch_tier.hpp"
#include "fmt/core.h"
2024-01-28 23:23:50 -06:00
namespace l
{
static
void
load_literal_branch(toml::table const &v_)
{
}
}
2024-01-28 22:45:38 -06:00
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")
2024-01-28 23:24:13 -06:00
l::load_literal_branch(table);
2024-01-28 23:19:24 -06:00
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
}
}