template<typename PktType>
class isc::dhcp::ScopedEnableOptionsCopy< PktType >
RAII object enabling copying options retrieved from the packet.
This object enables copying retrieved options from a packet within a scope in which this object exists. When the object goes out of scope copying options is disabled. This is applicable in cases when the server is going to invoke a callout (hook library) where copying options must be enabled by default. When the callouts return copying options should be disabled. The use of RAII object eliminates the need for explicitly re-disabling options copying and is safer in case of exceptions thrown by callouts and a presence of multiple exit points.
- Template Parameters
-
Definition at line 40 of file pkt.h.