*/
size_t HostConfigurationOption::get_hosts_count() const
{
- // ensure set_hosts_count was called first
+ // ensure that the set_hosts_count() was called first, in other words,
+ // set_hosts_count() MUST be called before get_hosts_count()
BOOST_ASSERT( HostsCount != invalid_host_count );
return HostsCount;
bool HostPingIntervalOption::validate( const variables_map& vm ) const
{
- bool is_valid = ( vm.count( this->get_command_string() ) > 0 );
+ bool is_valid = ( vm.count( get_command_string() ) > 0 );
return is_valid;
}
bool HostPingProtocolOption::validate( const variables_map& vm ) const
{
- bool is_valid = ( vm.count( this->get_command_string() ) > 0 );
+ bool is_valid = ( vm.count( get_command_string() ) > 0 );
return is_valid;
}
bool HostPortOption::validate( const variables_map& vm ) const
{
- bool is_valid = ( vm.count( this->get_command_string() ) > 0 );
+ bool is_valid = ( vm.count( get_command_string() ) > 0 );
return is_valid;
}