/src/kea/src/lib/d2srv/d2_zone.cc
Line | Count | Source |
1 | | // Copyright (C) 2013-2021 Internet Systems Consortium, Inc. ("ISC") |
2 | | // |
3 | | // This Source Code Form is subject to the terms of the Mozilla Public |
4 | | // License, v. 2.0. If a copy of the MPL was not distributed with this |
5 | | // file, You can obtain one at http://mozilla.org/MPL/2.0/. |
6 | | |
7 | | #include <config.h> |
8 | | |
9 | | #include <d2srv/d2_zone.h> |
10 | | |
11 | | namespace isc { |
12 | | namespace d2 { |
13 | | |
14 | | D2Zone::D2Zone(const dns::Name& name, const dns::RRClass& rrclass) |
15 | 0 | : name_(name), rrclass_(rrclass) { |
16 | 0 | } |
17 | | |
18 | 0 | std::string D2Zone::toText() const { |
19 | 0 | return (name_.toText() + " " + rrclass_.toText() + " SOA\n"); |
20 | 0 | } |
21 | | |
22 | | std::ostream& |
23 | 0 | operator<<(std::ostream& os, const D2Zone& zone) { |
24 | 0 | os << zone.toText(); |
25 | 0 | return (os); |
26 | 0 | } |
27 | | |
28 | | } // namespace d2 |
29 | | } // namespace isc |
30 | | |