mergerfs/src/branches2.cpp

26 lines
490 B
C++
Raw Normal View History

2024-01-26 00:41:09 -06:00
#include "branches2.hpp"
#include <iostream>
Branches2::Branches2()
{
}
Branches2::Branches2(toml::value const &v_)
{
2024-01-27 00:49:38 -06:00
auto const &tiers = toml::find(v_,"tier");
2024-01-26 00:41:09 -06:00
2024-01-27 00:49:48 -06:00
for(auto const &tier : tiers.as_array())
2024-01-26 00:41:09 -06:00
{
2024-01-27 00:51:41 -06:00
auto const &branches = toml::find(tier,"branch");
for(auto const &branch : branches.as_array())
{
2024-01-27 00:52:27 -06:00
auto const &branch_table = branch.as_table();
2024-01-27 00:51:41 -06:00
2024-01-27 00:57:46 -06:00
if(toml::find<std::string>(branch_table,"type") == "literal");
2024-01-27 00:51:41 -06:00
}
2024-01-26 00:41:09 -06:00
}
}