mergerfs/src/branch2.cpp

16 lines
251 B
C++
Raw Normal View History

2024-01-24 21:49:02 -06:00
#include "branch2.hpp"
2024-01-25 22:39:56 -06:00
2024-01-29 00:00:38 -06:00
Branch2::Branch2()
: mode(Mode::RW)
{
}
2024-01-25 22:39:56 -06:00
Branch2::Branch2(toml::value const &v_)
2024-01-29 00:02:15 -06:00
: mode(Mode::RW)
2024-01-25 22:39:56 -06:00
{
2024-01-25 22:44:32 -06:00
enabled = v_.at("enabled").as_boolean();
2024-01-29 00:06:00 -06:00
mode = Mode::_from_string(toml::find<std::string>(v_,"mode").c_str());
2024-01-25 22:39:56 -06:00
}