@ -70,3 +70,16 @@ BranchTier::BranchTier(toml::value const &v_)
l::load_branch_scan(table,_branches);
}
void
BranchTier::copy_enabled_rw(BranchTier &bt_)
{
for(auto const &b : _branches)
if(b.enabled == false)
continue;
if(b.mode != Branch2::Mode::RW)
bt_.emplace_back(b);