21 #define REPLACER_CONFIGURER_NAMESPACE BASE_CONFIGURER_NAMESPACE "replacer" 33 boost::recursive_mutex::scoped_lock scoped_lock(this->
mutex);
35 std::string address = this->
config.replacer_address;
49 boost::recursive_mutex::scoped_lock scoped_lock(this->
mutex);
50 return this->
config.replacer_port;
54 boost::recursive_mutex::scoped_lock scoped_lock(this->
mutex);
55 return this->
config.specific_source;
59 output <<
"Replacer Endpoint: " << repl_conf.
config.replacer_address;
60 output <<
":" << repl_conf.
config.replacer_port << std::endl;
61 output <<
"Specific Source: " << (repl_conf.
config.specific_source ?
"True" :
"False") << std::endl;
62 output <<
"Reset: " << ((repl_conf.
config.reset || repl_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)