#include <boost/assert.hpp>
+using namespace std;
+
//-----------------------------------------------------------------------------
// Host
//-----------------------------------------------------------------------------
-Host::Host( std::string address ) :
+Host::Host( string address ) :
Address( address ),
Port( 0 ),
IntervalInSec( 0 ),
{
}
-std::string Host::get_address() const
+string Host::get_address() const
{
return Address;
}
-void Host::set_address( const std::string& address )
+void Host::set_address( const string &address )
{
BOOST_ASSERT( !address.empty() );
void Host::set_port( const uint16_t port )
{
- BOOST_ASSERT( ( 0 < port ) && ( port < std::numeric_limits<uint16_t>::max() ) );
+ BOOST_ASSERT( ( 0 < port ) && ( port < numeric_limits<uint16_t>::max() ) );
this->Port = port;
}
void Host::set_interval_in_sec( const int interval_in_sec )
{
- BOOST_ASSERT( ( 0 < interval_in_sec ) && ( interval_in_sec < std::numeric_limits<int>::max() ) );
+ BOOST_ASSERT( ( 0 < interval_in_sec ) && ( interval_in_sec < numeric_limits<int>::max() ) );
this->IntervalInSec = interval_in_sec;
}
-std::vector<std::string> Host::get_options() const
+vector<string> Host::get_options() const
{
return Options;
}
-void Host::set_options( const std::vector<std::string> &options )
+void Host::set_options( const vector<string> &options )
{
BOOST_ASSERT( 0 < options.size() );
virtual ~Host();
std::string get_address() const;
- void set_address( const std::string& address );
+ void set_address( const std::string &address );
uint16_t get_port() const;
void set_port( const uint16_t port );