|
@@ -312,6 +312,35 @@ protected:
|
|
|
/// @throw BadValue Universe is not V6.
|
|
|
virtual void pack6(isc::util::OutputBuffer& buf);
|
|
|
|
|
|
+ /// @brief Store sub options in a buffer.
|
|
|
+ ///
|
|
|
+ /// This method stores all sub-options defined for a particular
|
|
|
+ /// option in a on-wire format in output buffer provided.
|
|
|
+ /// This function is called by pack function in this class or
|
|
|
+ /// derived classes that override pack.
|
|
|
+ ///
|
|
|
+ /// @param [out] buf output buffer.
|
|
|
+ ///
|
|
|
+ /// @todo The set of exceptions thrown by this function depend on
|
|
|
+ /// exceptions thrown by pack methods invoked on objects
|
|
|
+ /// representing sub options. We should consider whether to aggregate
|
|
|
+ /// those into one exception which can be documented here.
|
|
|
+ void packOptions(isc::util::OutputBuffer& buf);
|
|
|
+
|
|
|
+ /// @brief Builds a collection of sub options from the buffer.
|
|
|
+ ///
|
|
|
+ /// This method parses the provided buffer and builds a collection
|
|
|
+ /// of objects representing sub options. This function may throw
|
|
|
+ /// different exceptions when option assembly fails.
|
|
|
+ ///
|
|
|
+ /// @param buf buffer to be parsed.
|
|
|
+ ///
|
|
|
+ /// @todo The set of exceptions thrown by this function depend on
|
|
|
+ /// exceptions thrown by unpack methods invoked on objects
|
|
|
+ /// representing sub options. We should consider whether to aggregate
|
|
|
+ /// those into one exception which can be documented here.
|
|
|
+ void unpackOptions(const OptionBuffer& buf);
|
|
|
+
|
|
|
/// @brief A private method used for option correctness.
|
|
|
///
|
|
|
/// It is used in constructors. In there are any problems detected
|