21 #define TEAMS_CONFIGURER_NAMESPACE BASE_CONFIGURER_NAMESPACE "teams" 33 boost::recursive_mutex::scoped_lock scoped_lock(this->
mutex);
37 if (color == TeamColor::YELLOW) {
38 address = this->
config.yellow_team_address;
40 address = this->
config.blue_team_address;
55 boost::recursive_mutex::scoped_lock scoped_lock(this->
mutex);
57 if (color == TeamColor::YELLOW) {
58 return this->
config.yellow_team_port;
60 return this->
config.blue_team_port;
65 boost::recursive_mutex::scoped_lock scoped_lock(this->
mutex);
66 return this->
config.specific_source;
70 output <<
"Yellow Team Endpoint: " << teams_conf.
config.yellow_team_address;
71 output <<
":" << teams_conf.
config.yellow_team_port << std::endl;
72 output <<
"Blue Team Endpoint: " << teams_conf.
config.blue_team_address;
73 output <<
":" << teams_conf.
config.blue_team_port << std::endl;
74 output <<
"Specific Source: " << (teams_conf.
config.specific_source ?
"True" :
"False") << std::endl;
75 output <<
"Reset: " << ((teams_conf.
config.reset || teams_conf.
reconfigured) ?
"True" :
"False") << std::endl;
IPValidation
Type used to validate a IP string.
std::string get_error_msg(IPValidation error)
Get the error msg based on the validation type.
IPValidation check_valid_ip(std::string ip, std::string min_ip, std::string max_ip)
Checks if a IP is valid and is in the specified range.
std::ostream & operator<<(std::ostream &output, const ReplacerConfigurer &repl_conf)