checkpoint

This commit is contained in:
Antonio SJ Musumeci 2024-01-28 22:45:38 -06:00
parent e769d94e00
commit 479cfafe5a
2 changed files with 41 additions and 0 deletions

21
src/branch_tier.cpp Normal file
View File

@ -0,0 +1,21 @@
#include "branch_tier.hpp"
#include "fmt/core.h"
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();
std::string s = table.at("type").as_string();
fmt::print("{}\n",s);
}
}

20
src/branch_tier.hpp Normal file
View File

@ -0,0 +1,20 @@
#pragma once
#include "branch2.hpp"
#include "toml.hpp"
#include <vector>
class BranchTier
{
public:
BranchTier();
BranchTier(toml::value const &);
public:
uint64_t min_free_space;
private:
std::vector<Branch2> _branches;
};