Make Feature a struct enum so we can put methods on it.

Just noticed this as I was looking at making other changes.
This commit is contained in:
Michael Gottesman
2025-03-10 12:05:41 -07:00
committed by Anthony Latsis
parent 6eaa07a880
commit 3ff9463957
17 changed files with 130 additions and 110 deletions

View File

@@ -20,9 +20,8 @@ FeatureParsingTest::FeatureParsingTest() : ArgParsingTest() {
this->langMode = defaultLangMode;
}
FeatureWrapper::FeatureWrapper(Feature id)
: id(id), name(getFeatureName(id).data()) {
auto langMode = getFeatureLanguageVersion(id);
FeatureWrapper::FeatureWrapper(Feature id) : id(id), name(id.getName().data()) {
auto langMode = id.getLanguageVersion();
if (langMode) {
this->langMode = std::to_string(*langMode);
}