You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

32 lines
515 B

#pragma once
#include "ghc/filesystem.hpp"
#include "toml.hpp"
#include "enum.h"
#include <stdint.h>
BETTER_ENUM(BranchMode,int,RO,RW,NC);
class Branch2
{
public:
typedef BranchMode Mode;
public:
Branch2();
Branch2(Branch2 const &);
Branch2(Branch2 &&);
Branch2(toml::value const &value,
uint64_t const min_free_space = 0);
~Branch2();
Branch2& operator=(Branch2 const &);
public:
bool enabled;
Mode mode;
uint64_t min_free_space;
int fd;
ghc::filesystem::path path;
};