const MasterToken&
MasterLexer::getNextToken(Options options) {
- if (impl_->source_ == 0) {
+ if (!impl_->source_) {
isc_throw(isc::InvalidOperation, "No source to read tokens from");
}
// Store the current state so we can restore it in ungetToken
} // end of namespace "any"
+namespace ch {
+
+A::A(const std::string&) {
+ // TBD
+}
+
+A::A(MasterLexer&, const Name*,
+ MasterLoader::Options, MasterLoaderCallbacks&)
+{
+ // TBD
+}
+
+A::A(InputBuffer&, size_t) {
+ // TBD
+}
+
+A::A(const A&) : Rdata() {
+ // TBD
+}
+
+void
+A::toWire(OutputBuffer&) const {
+ // TBD
+}
+
+void
+A::toWire(AbstractMessageRenderer&) const {
+ // TBD
+}
+
+string
+A::toText() const {
+ // TBD
+ isc_throw(InvalidRdataText, "Not implemented yet");
+}
+
+int
+A::compare(const Rdata&) const {
+ return (0); // dummy. TBD
+}
+
+} // end of namespace "ch"
+
namespace generic {
/// \brief Constructor from string.
decodeBase64(signature_txt, signature);
}
- return (std::unique_ptr<RRSIGImpl>(new RRSIGImpl(covered, algorithm, labels,
- originalttl, timeexpire, timeinception,
- static_cast<uint16_t>(tag), signer, signature)));
+ return (std::unique_ptr<RRSIGImpl>(new RRSIGImpl(covered,
+ algorithm,
+ labels,
+ originalttl,
+ timeexpire,
+ timeinception,
+ static_cast<uint16_t>(tag),
+ signer,
+ signature)));
}
/// \brief Constructor from string.
} // end of namespace "any"
+namespace ch {
+
+class A : public Rdata {
+public:
+ explicit A(const std::string& type_str);
+ A(isc::util::InputBuffer& buffer, size_t rdata_len);
+ A(const A& other);
+ A(
+ MasterLexer& lexer, const Name* name,
+ MasterLoader::Options options, MasterLoaderCallbacks& callbacks);
+ virtual std::string toText() const;
+ virtual void toWire(isc::util::OutputBuffer& buffer) const;
+ virtual void toWire(AbstractMessageRenderer& renderer) const;
+ virtual int compare(const Rdata& other) const;
+};
+
+} // end of namespace "ch"
+
namespace generic {
namespace detail {