Files
StorytellersBestFriend/sbf-cpp/Disciplines.cpp
Tom Hicks 5e57ac277d Configures clang-format and clangd.
Runs clang-format on all c++ files.
2023-04-21 21:57:29 -07:00

25 lines
485 B
C++

#include "Disciplines.h"
#include <string>
#include <vector>
namespace SBF {
using std::string;
using std::vector;
string GetDisciplineLabel(int disciplineId) {
if (disciplineId > 0 && disciplineId <= kDisciplinesCount) {
return kDisciplines[disciplineId];
}
return "";
}
void FillDisciplineLabels(vector<string>& labels) {
labels.clear();
for (int id = 1; id <= kDisciplinesCount; id++) {
labels.push_back(GetDisciplineLabel(id));
}
}
} // End namespace SBF