7#ifndef OPTION6_STATUS_CODE_H 
    8#define OPTION6_STATUS_CODE_H 
   11#include <boost/shared_ptr.hpp> 
   63    virtual uint16_t 
len() 
const;
 
   68    virtual std::string 
toText(
int indent = 0) 
const;
 
   78        return (status_code_);
 
 
   88        status_code_ = status_code;
 
 
   93        return (status_message_);
 
 
  100        status_message_ = status_message;
 
 
  105    uint16_t status_code_;
 
  108    std::string status_message_;
 
 
  113class Option4SlpServiceScope;
 
  159    virtual uint16_t 
len() 
const;
 
  164    virtual std::string 
toText(
int indent = 0) 
const;
 
  174        return (mandatory_flag_);
 
 
  181        mandatory_flag_ = mandatory_flag;
 
 
  186        return (scope_list_);
 
 
  193        scope_list_ = scope_list;
 
 
  198    bool mandatory_flag_;
 
  201    std::string scope_list_;
 
 
virtual void pack(isc::util::OutputBuffer &buf, bool check=true) const
Writes option in wire-format.
void setMandatoryFlag(const bool mandatory_flag)
Sets new mandatory flag.
virtual uint16_t len() const
Returns total length of the option.
void setScopeList(std::string &scope_list)
Sets new scope list.
std::string dataToText() const
Returns textual representation of the option data.
virtual void unpack(OptionBufferConstIter begin, OptionBufferConstIter end)
Parses received buffer.
bool getMandatoryFlag() const
Returns mandatory flag.
const std::string & getScopeList() const
Returns scope list.
Option4SlpServiceScope(const bool mandatory_flag, const std::string &scope_list)
Constructor, used for options constructed (during transmission).
virtual std::string toText(int indent=0) const
Returns textual representation of the option.
virtual OptionPtr clone() const
Copies this option and returns a pointer to the copy.
This class represents Status Code option (13) from RFC 8415.
virtual OptionPtr clone() const
Copies this option and returns a pointer to the copy.
virtual void pack(isc::util::OutputBuffer &buf, bool check=true) const
Writes option in wire-format.
Option6StatusCode(const uint16_t status_code, const std::string &status_message)
Constructor, used for options constructed (during transmission).
virtual uint16_t len() const
Returns total length of the option.
std::string getStatusCodeName() const
Returns the name of the status code.
std::string dataToText() const
Returns textual representation of the option data.
virtual std::string toText(int indent=0) const
Returns textual representation of the option.
const std::string & getStatusMessage() const
Returns status message.
virtual void unpack(OptionBufferConstIter begin, OptionBufferConstIter end)
Parses received buffer.
void setStatusCode(const uint16_t status_code)
Sets new numeric status code.
uint16_t getStatusCode() const
Returns numeric status code.
void setStatusMessage(const std::string &status_message)
Sets new status message.
Option(Universe u, uint16_t type)
ctor, used for options constructed, usually during transmission
void check() const
A protected method used for option correctness.
The OutputBuffer class is a buffer abstraction for manipulating mutable data.
OptionBuffer::const_iterator OptionBufferConstIter
const_iterator for walking over OptionBuffer
boost::shared_ptr< Option6StatusCode > Option6StatusCodePtr
Pointer to the isc::dhcp::Option6StatusCode.
boost::shared_ptr< Option4SlpServiceScope > Option4SlpServiceScopePtr
Pointer to the isc::dhcp::Option4SlpServiceScope.
boost::shared_ptr< Option > OptionPtr
Defines the logger used by the top-level component of kea-lfc.