Commit aac7b173 authored by Mukund Sivaraman's avatar Mukund Sivaraman
Browse files

[2497] Move create() definition to .cc file

parent 6921ae3d
......@@ -41,6 +41,34 @@ using namespace isc::dns::rdata;
namespace isc {
namespace dns {
namespace rdata {
RdataPtr
AbstractRdataFactory::create(MasterLexer& lexer, const Name*,
MasterLoader::Options,
MasterLoaderCallbacks&) const
{
std::string s;
while (true) {
const MasterLexer::Token& token = lexer.getNextToken();
if (token.getType() == MasterLexer::Token::END_OF_FILE) {
break;
}
if (!s.empty()) {
s += " ";
}
s += token.getString();
}
return (create(s));
}
} // end of namespace isc::dns::rdata
namespace {
///
/// The following function and class are a helper to define case-insensitive
......
......@@ -125,25 +125,7 @@ public:
/// \brief Create RDATA from MasterLexer
virtual RdataPtr create(MasterLexer& lexer, const Name*,
MasterLoader::Options,
MasterLoaderCallbacks&) const {
std::string s;
while (true) {
const MasterLexer::Token& token = lexer.getNextToken();
if (token.getType() == MasterLexer::Token::END_OF_FILE) {
break;
}
if (!s.empty()) {
s += " ";
}
s += token.getString();
}
return (create(s));
}
MasterLoaderCallbacks&) const;
//@}
};
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment