mirror of
https://gitlab.isc.org/isc-projects/kea
synced 2025-08-31 22:15:23 +00:00
[2442] simplified interface; txt-like ctor only needs to take lexer.
This commit is contained in:
@@ -16,8 +16,6 @@
|
||||
#define TXT_LIKE_H 1
|
||||
|
||||
#include <dns/master_lexer.h>
|
||||
#include <dns/master_loader.h>
|
||||
#include <dns/master_loader_callbacks.h>
|
||||
#include <dns/rdata/generic/detail/char_string.h>
|
||||
|
||||
#include <stdint.h>
|
||||
@@ -102,17 +100,12 @@ public:
|
||||
|
||||
/// \brief Constructor using the master lexer.
|
||||
///
|
||||
/// This implementation only uses the \c lexer parameters; others are
|
||||
/// ignored.
|
||||
///
|
||||
/// \throw CharStringTooLong the parameter string length exceeds maximum.
|
||||
/// \throw InvalidRdataText the method cannot process the parameter data
|
||||
///
|
||||
/// \param lexer A \c MasterLexer object parsing a master file for this
|
||||
/// RDATA.
|
||||
TXTLikeImpl(MasterLexer& lexer, const Name*, MasterLoader::Options,
|
||||
MasterLoaderCallbacks&)
|
||||
{
|
||||
TXTLikeImpl(MasterLexer& lexer) {
|
||||
buildFromTextHelper(lexer);
|
||||
}
|
||||
|
||||
|
@@ -76,9 +76,9 @@ SPF::SPF(InputBuffer& buffer, size_t rdata_len) :
|
||||
///
|
||||
/// \param lexer A \c MasterLexer object parsing a master file for this
|
||||
/// RDATA.
|
||||
SPF::SPF(MasterLexer& lexer, const Name* origin,
|
||||
MasterLoader::Options options, MasterLoaderCallbacks& callbacks) :
|
||||
impl_(new SPFImpl(lexer, origin, options, callbacks))
|
||||
SPF::SPF(MasterLexer& lexer, const Name*, MasterLoader::Options,
|
||||
MasterLoaderCallbacks&) :
|
||||
impl_(new SPFImpl(lexer))
|
||||
{}
|
||||
|
||||
/// \brief Constructor from string.
|
||||
|
@@ -62,9 +62,9 @@ TXT::TXT(InputBuffer& buffer, size_t rdata_len) :
|
||||
///
|
||||
/// \param lexer A \c MasterLexer object parsing a master file for this
|
||||
/// RDATA.
|
||||
TXT::TXT(MasterLexer& lexer, const Name* origin,
|
||||
MasterLoader::Options options, MasterLoaderCallbacks& callbacks) :
|
||||
impl_(new TXTImpl(lexer, origin, options, callbacks))
|
||||
TXT::TXT(MasterLexer& lexer, const Name*, MasterLoader::Options,
|
||||
MasterLoaderCallbacks&) :
|
||||
impl_(new TXTImpl(lexer))
|
||||
{}
|
||||
|
||||
TXT::TXT(const std::string& txtstr) :
|
||||
|
Reference in New Issue
Block a user