Browse Source

checkpoint

toml4
Antonio SJ Musumeci 11 months ago
parent
commit
479cfafe5a
  1. 21
      src/branch_tier.cpp
  2. 20
      src/branch_tier.hpp

21
src/branch_tier.cpp

@ -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

@ -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;
};
Loading…
Cancel
Save