Refactors constants out of Genders.h.

This commit is contained in:
2023-04-25 13:40:12 -07:00
parent f35c0f21d0
commit dc4295bd86
3 changed files with 21 additions and 14 deletions

View File

@@ -16,24 +16,10 @@
*/
namespace SBF {
const int kGenderMaleId = 1;
const std::string kGenderMaleLabel = "Male";
const int kGenderFemaleId = 2;
const std::string kGenderFemaleLabel = "Female";
const int kGenderTransMaleId = 3;
const std::string kGenderTransMaleLabel = "Trans-Male";
const int kGenderTransFemaleId = 4;
const std::string kGenderTransFemaleLabel = "Trans-Female";
const int kGenderNonBinaryId = 5;
const std::string kGenderNonBinaryLabel = "Non-Binary";
const int kGendersCount = 5;
const std::string kGenderLabels[] = {
"",
kGenderMaleLabel,
kGenderFemaleLabel,
kGenderTransMaleLabel,
kGenderTransFemaleLabel,
kGenderNonBinaryLabel,
};
/// @brief Gets a gender label with a specific id.
/// @param gender_id The id of the gender to return the label for.