option.h 18.4 KB
 Marcin Siodelski committed May 05, 2015 1 // Copyright (C) 2011-2015 Internet Systems Consortium, Inc. ("ISC")  Tomek Mrugalski committed Oct 14, 2011 2 3 4 5 6 7 8 9 10 11 12 13 14 // // Permission to use, copy, modify, and/or distribute this software for any // purpose with or without fee is hereby granted, provided that the above // copyright notice and this permission notice appear in all copies. // // THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH // REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY // AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT, // INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM // LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE // OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR // PERFORMANCE OF THIS SOFTWARE.  Stephen Morris committed Nov 16, 2012 15 16 17 18 19 #ifndef OPTION_H #define OPTION_H #include  Marcin Siodelski committed Oct 04, 2013 20 #include  Stephen Morris committed Nov 16, 2012 21 #include  Tomek Mrugalski committed Oct 14, 2011 22 23  #include  Stephen Morris committed Nov 16, 2012 24 #include  Tomek Mrugalski committed Oct 26, 2011 25 #include  Tomek Mrugalski committed Oct 14, 2011 26 27 28 29  namespace isc { namespace dhcp {  Tomek Mrugalski committed Feb 17, 2012 30 31 32 /// @brief buffer types used in DHCP code. /// /// Dereferencing OptionBuffer iterator will point out to contiguous memory.  Tomek Mrugalski committed Feb 03, 2012 33 34 35 36 37 38 39 40 41 typedef std::vector OptionBuffer; /// iterator for walking over OptionBuffer typedef OptionBuffer::iterator OptionBufferIter; /// const_iterator for walking over OptionBuffer typedef OptionBuffer::const_iterator OptionBufferConstIter; /// pointer to a DHCP buffer  Tomek Mrugalski committed Feb 17, 2012 42 typedef boost::shared_ptr OptionBufferPtr;  Tomek Mrugalski committed Feb 03, 2012 43 44 45 46 47  /// shared pointer to Option object class Option; typedef boost::shared_ptr