28 os <<
"Server configuration:\n"
29 <<
" Port : " << c.
port <<
"\n"
31 <<
" Clients : " << c.
clientsNb <<
" per team\n"
32 <<
" Freq : " << c.
freq <<
" Hz\n"
33 <<
" Seed : " << c.
seed <<
"\n"
35 for (
size_t i = 0; i < c.
teamNames.size(); ++i) {
45 Args(
int argc,
char** argv);
75 static constexpr int ERROR = 84;
int exitCode() const
Gets the exit code for the application.
static constexpr int SUCCESS
ServerConfig getConfig() const
Gets the configuration for the server application.
static constexpr int ERROR
bool isHelpRequested() const
Checks if the help flag was provided in the arguments.
bool isValid() const
Checks if the parsed arguments are valid and if the application should run.
Represents the configuration for the server application, described by:
std::vector< std::string > teamNames
friend std::ostream & operator<<(std::ostream &os, const ServerConfig &c)