Kata Tournament Runner  0.1.00
 All Classes Namespaces Functions Variables Enumerations Groups Pages
Classes | Functions | Variables
TournamentRunner Namespace Reference

Classes

class  Date
 The Date class provides Date handling based on the boost::gregorian::date. More...
 
class  Karateka
 The Karateka class. More...
 
class  IKataPerformer
 The IKataPerformer interface. More...
 
class  KataRoundScores
 
class  Persistency
 The Persistency class. More...
 
class  IPersistency
 The Persistency Interface. More...
 
struct  TournamentData
 The TournamentData struct holding all tournament relevant informations. More...
 
class  Tournament
 The Tournament class is the starting point for the tournament management. More...
 

Functions

bool operator== (const Date &lhs, const Date &rhs)
 
bool operator!= (const Date &lhs, const Date &rhs)
 
std::ostream & operator<< (std::ostream &os, const Date &date)
 
static int compare_scores_for_round (const IKataPerformer &lhs, const IKataPerformer &rhs, uint8_t round)
 
bool kata_score_sort_greater (const IKataPerformer &lhs, const IKataPerformer &rhs)
 Karateka score compare method for std::sort algorithm. More...
 
bool kata_score_is_equal (const IKataPerformer &lhs, const IKataPerformer &rhs)
 kata_score_is_equal More...
 

Variables

static const auto serialization_xml_element_name = "Tournament"
 
constexpr auto max_number_of_kata_rounds = 3
 Max number of kata rounds (3)
 
constexpr auto version_major = "0"
 
constexpr auto version_minor = "1"
 
constexpr auto version_patch = "00"
 
const uint8_t number_of_kata_scores_per_round = 5
 Number of kata scores per round (5)
 

Detailed Description

Namespace of the Tournament Runner core-library

Function Documentation

bool TournamentRunner::kata_score_is_equal ( const IKataPerformer &  lhs,
const IKataPerformer &  rhs 
)

kata_score_is_equal

Parameters
lhs
rhs
Returns

Here is the call graph for this function:

Here is the caller graph for this function:

bool TournamentRunner::kata_score_sort_greater ( const IKataPerformer &  lhs,
const IKataPerformer &  rhs 
)

Karateka score compare method for std::sort algorithm.

Rules are:

  • highest overall kata score first.
  • if the same the higher minimal score comes first
  • if this is also the same the higher maximal score comes first
    Parameters
    lhs
    rhs
    Return values
    ​trueif the lhs is less than the rhs.
    falseotherwise

Here is the call graph for this function:

Here is the caller graph for this function: