|
@ -1,5 +1,7 @@ |
|
|
#include "branch2.hpp"
|
|
|
#include "branch2.hpp"
|
|
|
|
|
|
|
|
|
|
|
|
#include <iostream>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Branch2::Branch2() |
|
|
Branch2::Branch2() |
|
|
: mode(Mode::RW) |
|
|
: mode(Mode::RW) |
|
@ -10,9 +12,11 @@ Branch2::Branch2() |
|
|
Branch2::Branch2(toml::value const &v_) |
|
|
Branch2::Branch2(toml::value const &v_) |
|
|
: mode(Mode::RW) |
|
|
: mode(Mode::RW) |
|
|
{ |
|
|
{ |
|
|
|
|
|
std::cout << v_ << '\n'; |
|
|
|
|
|
|
|
|
enabled = v_.at("enabled").as_boolean(); |
|
|
enabled = v_.at("enabled").as_boolean(); |
|
|
mode = Mode::_from_string(toml::find<std::string>(v_,"mode").c_str()); |
|
|
mode = Mode::_from_string(toml::find<std::string>(v_,"mode").c_str()); |
|
|
min_free_space = 0; |
|
|
min_free_space = 0; |
|
|
path = toml::find<std::string>(v_,"path"); |
|
|
path = toml::find<std::string>(v_,"path"); |
|
|
printf("%s\n",path.string().c_str()); |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
} |