mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-10-26 19:01:56 -04:00
25 lines
477 B
C++
25 lines
477 B
C++
#include "branches2.hpp"
|
|
|
|
#include <iostream>
|
|
|
|
Branches2::Branches2()
|
|
{
|
|
|
|
}
|
|
|
|
Branches2::Branches2(toml::value const &v_)
|
|
{
|
|
auto const &tiers = toml::find(v_,"tier");
|
|
|
|
for(auto const &tier : tiers.as_array())
|
|
{
|
|
auto const &branches = toml::find(tier,"branch");
|
|
|
|
for(auto const &branch : branches.as_array())
|
|
{
|
|
auto const &branch_table = branch.as_table();
|
|
|
|
if(branch_table["type"].as_string() == "literal")
|
|
}
|
|
}
|
|
}
|