diff --git a/src/branch_tier.cpp b/src/branch_tier.cpp index e01ddefa..4883fc42 100644 --- a/src/branch_tier.cpp +++ b/src/branch_tier.cpp @@ -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) + continue; + bt_.emplace_back(b); + } +}