change category to enum class

This commit is contained in:
Antonio SJ Musumeci 2020-08-16 13:30:43 -04:00
parent 4c711159df
commit 6cc6524997
22 changed files with 144 additions and 263 deletions

View file

@ -134,19 +134,19 @@ namespace epff
}
int
Policy::Func::epff(const Category::Enum::Type type_,
const Branches &branches_,
const char *fusepath_,
const uint64_t minfreespace_,
vector<string> *paths_)
Policy::Func::epff(const Category type_,
const Branches &branches_,
const char *fusepath_,
const uint64_t minfreespace_,
vector<string> *paths_)
{
switch(type_)
{
case Category::Enum::create:
case Category::CREATE:
return epff::create(branches_,fusepath_,minfreespace_,paths_);
case Category::Enum::action:
case Category::ACTION:
return epff::action(branches_,fusepath_,paths_);
case Category::Enum::search:
case Category::SEARCH:
default:
return epff::search(branches_,fusepath_,paths_);
}