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

@ -170,19 +170,19 @@ namespace eplus
}
int
Policy::Func::eplus(const Category::Enum::Type type,
const Branches &branches_,
const char *fusepath,
const uint64_t minfreespace,
vector<string> *paths)
Policy::Func::eplus(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 eplus::create(branches_,fusepath,minfreespace,paths);
case Category::Enum::action:
case Category::ACTION:
return eplus::action(branches_,fusepath,paths);
case Category::Enum::search:
case Category::SEARCH:
default:
return eplus::search(branches_,fusepath,paths);
}