libutil++  1.9.3
 All Classes Functions Variables
IPv6Address.cpp
1 /*
2 ** libutil++
3 ** $Id: IPv6Address.cpp 1653 2016-02-28 19:54:59Z sella $
4 ** Copyright (c) 2011-2016 Digital Genesis, LLC. All Rights Reserved.
5 ** Released under the LGPL Version 2.1 License.
6 ** http://www.digitalgenesis.com
7 */
8 
9 static const char rcsid[] __attribute__((used)) = "$Id: IPv6Address.cpp 1653 2016-02-28 19:54:59Z sella $";
10 
11 #include "IPv6Address.h"
12 #include "IPAddress.h"
13 #include "AddressException.h"
14 
15 #include <string>
16 
17 using namespace sella::net;
18 
19 IPv6Address::IPv6Address(const std::string &addr) throw (AddressException) :
20  IPAddress(addr, IPAddress::IPv6Required)
21 { }
22 
23 IPv6Address::IPv6Address() throw (AddressException) :
24  IPAddress(IPAddress::IPv6Required)
25 { }
26 
27 IPv6Address::IPv6Address(const IPv6Address &other) throw () :
28  IPAddress(other)
29 { }
30 
31 IPv6Address::IPv6Address(const IPv6Address &&other) throw () :
32  IPAddress(other)
33 { }
34 
35 IPv6Address::~IPv6Address() throw () { }
36 
37 const IPv6Address::shared IPv6Address::shared_ptr(const std::string &addr) throw (AddressException) {
38  return std::make_shared<IPv6Address>(addr);
39 }
40 
41 /*
42 ** vim: noet ts=3 sw=3
43 */