Kata Tournament Runner  0.1.00
 All Classes Namespaces Functions Variables Enumerations Groups Pages
Public Member Functions | Public Attributes | List of all members
TournamentRunner::TournamentData Struct Reference

The TournamentData struct holding all tournament relevant informations. More...

#include <tournament.h>

Collaboration diagram for TournamentRunner::TournamentData:
Collaboration graph
[legend]

Public Member Functions

TournamentData & with_name (const std::string &name)
 Set the tournament name. More...
 
TournamentData & with_name (std::string &&name) noexcept
 
TournamentData & on_date (const Date &date)
 Set the tournament date. More...
 
TournamentData & on_date (Date &&date) noexcept
 
TournamentData & on_date (const std::string &date_as_string)
 Set the tournament date. More...
 
TournamentData & at_location (const std::string &address)
 Set the location the tournament is held. More...
 
TournamentData & at_location (std::string &&address) noexcept
 

Public Attributes

std::string name_ {}
 
Date date_ {}
 
std::string location_ {}
 

Detailed Description

The TournamentData struct holding all tournament relevant informations.

Member Function Documentation

TournamentData& TournamentRunner::TournamentData::at_location ( const std::string &  address)
inline

Set the location the tournament is held.

Parameters
addressLocation
Returns
Reference to the updated tournament data
TournamentData& TournamentRunner::TournamentData::at_location ( std::string &&  address)
inlinenoexcept

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

TournamentData& TournamentRunner::TournamentData::on_date ( const Date &  date)
inline

Set the tournament date.

Parameters
dateDate the tournament is held as Date
Returns
Reference to the updated tournament data
TournamentData& TournamentRunner::TournamentData::on_date ( Date &&  date)
inlinenoexcept

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

TournamentData& TournamentRunner::TournamentData::on_date ( const std::string &  date_as_string)
inline

Set the tournament date.

Parameters
date_as_stringDate the tournament is held as ISO 8601 extended format string (CCYY-MM-DD)
Returns
Reference to the updated tournament data
TournamentData& TournamentRunner::TournamentData::with_name ( const std::string &  name)
inline

Set the tournament name.

Parameters
nametournament name
Returns
Reference to the updated tournament data
TournamentData& TournamentRunner::TournamentData::with_name ( std::string &&  name)
inlinenoexcept

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.


The documentation for this struct was generated from the following file: