]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[2565] Add proto for RRClass::fromText()
authorMukund Sivaraman <muks@isc.org>
Mon, 17 Dec 2012 07:40:36 +0000 (13:10 +0530)
committerMukund Sivaraman <muks@isc.org>
Wed, 19 Dec 2012 03:40:06 +0000 (09:10 +0530)
src/lib/dns/rrclass-placeholder.h

index 70d6b786ca58de8da110f150ad393c97e8e49d8c..5ebc2d5c36d927c9c6b9b0399d04acf5343abb7c 100644 (file)
@@ -181,6 +181,20 @@ public:
     /// \param renderer DNS message rendering context that encapsulates the
     /// output buffer in which the RRClass is to be stored.
     void toWire(isc::util::OutputBuffer& buffer) const;
+
+    /// \brief Assign this \c RRClass from string.
+    ///
+    /// This method assigns this \c RRClass from the string
+    /// representation passed in \c class_str. For the format of this
+    /// string, see the <code>RRClass(const std::string&)</code>
+    /// constructor.
+    ///
+    /// If the conversion from string passes, true is
+    /// returned. Otherwise false is returned.
+    ///
+    /// \param class_str A string representation of the \c RRClass
+    /// \return true if \c class_str was valid, false otherwise.
+    bool fromText(const std::string& class_str);
     //@}
 
     ///