00001
00002
00003
00004
00005
00006
00007
00008
00009 static const char rcsid[] __attribute__((used)) = "$Id: IPv4Address.cpp 1197 2014-10-14 22:26:11Z sella $";
00010
00011 #include "IPv4Address.h"
00012 #include "IPAddress.h"
00013 #include "AddressException.h"
00014
00015 #include <string>
00016
00017 using namespace sella::net;
00018
00019 IPv4Address::IPv4Address(const std::string &addr) throw (AddressException) :
00020 IPAddress(addr, IPAddress::IPv4Required)
00021 { }
00022
00023 IPv4Address::IPv4Address() throw (AddressException) :
00024 IPAddress(IPAddress::IPv4Required)
00025 { }
00026
00027 IPv4Address::IPv4Address(const IPv4Address &other) throw () :
00028 IPAddress(other)
00029 { }
00030
00031 IPv4Address::IPv4Address(const IPv4Address &&other) throw () :
00032 IPAddress(other)
00033 { }
00034
00035 IPv4Address::~IPv4Address() throw () { }
00036
00037 const IPv4Address::shared IPv4Address::shared_ptr(const std::string &addr) throw (AddressException) {
00038 return std::make_shared<IPv4Address>(addr);
00039 }
00040
00041
00042
00043