Changes to test system to allow per class tests.

This commit is contained in:
2023-03-31 03:00:17 -07:00
parent c5c8bddb48
commit c2f04de4f8
41 changed files with 1352 additions and 902 deletions

27
sbf-cpp/Ranks.h Normal file
View File

@@ -0,0 +1,27 @@
#ifndef RANKS_H__
#define RANKS_H__
#include <string>
#include <vector>
namespace SBF {
const int kRankPrimaryId = 1;
const std::wstring kRankPrimaryLabel = L"Primary";
const int kRankSecondaryId = 2;
const std::wstring kRankSecondaryLabel = L"Secondary";
const int kRankTertiaryId = 3;
const std::wstring kRankTertiaryLabel = L"Tertiary";
const int kRanksCount = 3;
struct RankType {
int id;
std::wstring label;
};
const RankType kRanks[] {
{0, L""},
{kRankPrimaryId, kRankPrimaryLabel},
{kRankSecondaryId, kRankSecondaryLabel},
{kRankTertiaryId, kRankTertiaryLabel},
};
const RankType& GetRank(int rankId);
void FillRanks(std::vector<RankType> ranks);
} // End namespace SBF
#endif // !defined RANKS_H__