diff options
author | Francis Dupont <fdupont@isc.org> | 2017-03-05 09:03:09 +0100 |
---|---|---|
committer | Tomek Mrugalski <tomasz@isc.org> | 2017-03-07 13:42:58 +0100 |
commit | 0beffc6e25c8413b4f9439e9f5b02f38bc75a076 (patch) | |
tree | 8032a8364455d21b461c676662d6998721244a4c /src/lib/dhcpsrv/cfg_mac_source.h | |
parent | [master] Added (fixed) src/bin/agent to Doxyfile (diff) | |
download | kea-0beffc6e25c8413b4f9439e9f5b02f38bc75a076.tar.xz kea-0beffc6e25c8413b4f9439e9f5b02f38bc75a076.zip |
[fdunparse2] Rebased, still reservations to do
Diffstat (limited to 'src/lib/dhcpsrv/cfg_mac_source.h')
-rw-r--r-- | src/lib/dhcpsrv/cfg_mac_source.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/lib/dhcpsrv/cfg_mac_source.h b/src/lib/dhcpsrv/cfg_mac_source.h index 802a780fa8..cfb9fb110b 100644 --- a/src/lib/dhcpsrv/cfg_mac_source.h +++ b/src/lib/dhcpsrv/cfg_mac_source.h @@ -7,6 +7,7 @@ #ifndef CFG_MAC_SOURCE_H #define CFG_MAC_SOURCE_H +#include <cc/cfg_to_element.h> #include <stdint.h> #include <vector> #include <string> @@ -21,7 +22,7 @@ typedef std::vector<uint32_t> CfgMACSources; /// /// It's a simple wrapper around a vector of uint32_t, with each entry /// holding one MAC source. -class CfgMACSource { +class CfgMACSource : public isc::data::CfgToElement { public: /// @brief Default constructor. @@ -68,6 +69,11 @@ class CfgMACSource { mac_sources_.clear(); } + /// @brief Unparse a configuration objet + /// + /// @return a pointer to unparsed configuration + virtual isc::data::ElementPtr toElement() const; + protected: /// @brief Actual MAC sources storage CfgMACSources mac_sources_; |