mirror of
https://gitlab.isc.org/isc-projects/kea
synced 2025-09-08 09:55:22 +00:00
42 lines
1.2 KiB
C
42 lines
1.2 KiB
C
![]() |
// Copyright (C) 2009 Internet Systems Consortium, Inc. ("ISC")
|
||
|
//
|
||
|
// Permission to use, copy, modify, and/or distribute this software for any
|
||
|
// purpose with or without fee is hereby granted, provided that the above
|
||
|
// copyright notice and this permission notice appear in all copies.
|
||
|
//
|
||
|
// THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
|
||
|
// REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
||
|
// AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
|
||
|
// INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
||
|
// LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
|
||
|
// OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
||
|
// PERFORMANCE OF THIS SOFTWARE.
|
||
|
|
||
|
// $Id$
|
||
|
|
||
|
#ifndef __MESSAGERENDERER_H
|
||
|
#define __MESSAGERENDERER_H 1
|
||
|
|
||
|
namespace isc {
|
||
|
namespace dns {
|
||
|
// forward declarations
|
||
|
class OutputBuffer;
|
||
|
class Name;
|
||
|
class MessageRendererImpl;
|
||
|
|
||
|
class MessageRenderer {
|
||
|
public:
|
||
|
MessageRenderer(OutputBuffer& buffer);
|
||
|
~MessageRenderer();
|
||
|
void writeName(const Name& name, bool compress = true);
|
||
|
private:
|
||
|
MessageRendererImpl* impl_;
|
||
|
};
|
||
|
}
|
||
|
}
|
||
|
#endif // __MESSAGERENDERER_H
|
||
|
|
||
|
// Local Variables:
|
||
|
// mode: c++
|
||
|
// End:
|