Browse Source

branch2.cpp

toml4
Antonio SJ Musumeci 1 year ago
parent
commit
ebe35f5a0b
  1. 7
      src/branch2.cpp

7
src/branch2.cpp

@ -1,7 +1,14 @@
#include "branch2.hpp" #include "branch2.hpp"
Branch2::Branch2()
: mode(Mode::RW)
{
}
Branch2::Branch2(toml::value const &v_) Branch2::Branch2(toml::value const &v_)
{ {
enabled = v_.at("enabled").as_boolean(); enabled = v_.at("enabled").as_boolean();
mode = v_.at("mode").as_string()
} }
Loading…
Cancel
Save