This class represents a Register-PDU. More...
#include <RegisterPDU.hpp>
Public Member Functions | |
| void | set_upper_bound (uint32_t upper_bound) |
| Set the upper_bound. | |
| uint32_t | get_upper_bound () |
| Get the upper_bound. | |
| void | set_subtree (oid subtree) |
| Set the subtree. | |
| oid | get_subtree () |
| Get the subtree. | |
| void | set_range_subid (byte_t range_subid) |
| Set the range_subid. | |
| byte_t | get_range_subid () |
| Get the range_subid. | |
| void | set_priority (byte_t priority) |
| Set the priority. | |
| byte_t | get_priority () |
| Get the priority. | |
| void | set_timeout (byte_t timeout) |
| Set the timeout. | |
| byte_t | get_timeout () |
| Get the timeout. | |
| RegisterPDU (data_t::const_iterator &pos, const data_t::const_iterator &end, bool big_endian) | |
| Parse constructor. | |
| data_t | serialize () const |
| Serialize the PDU. | |
| RegisterPDU () | |
| Default Constructor. | |
| bool | get_instance_registration () |
| Get instance_registration flag. | |
| void | set_instance_registration (bool ir) |
| Set instance_registration flag. | |
Private Attributes | |
| byte_t | timeout |
| byte_t | priority |
| oid | subtree |
| byte_t | range_subid |
| uint32_t | upper_bound |
This class represents a Register-PDU.
Definition at line 33 of file RegisterPDU.hpp.
| RegisterPDU::RegisterPDU | ( | data_t::const_iterator & | pos, |
| const data_t::const_iterator & | end, | ||
| bool | big_endian | ||
| ) |
Parse constructor.
Construct the object by parsing a stream. See Parsing incoming PDUs for details about PDU parsing.
| pos | Iterator pointing to the current stream position. The iterator is advanced while reading the header. |
| end | Iterator pointing one element past the end of the current stream. This is needed to mark the end of the buffer. |
| big_endian | Whether the serialized form of the PDU is in big_endian format. |
| parse_error | If parsing fails, for example because reading the stream fails or the PDU is malformed. |
Definition at line 24 of file RegisterPDU.cpp.
References priority, range_subid, read32(), subtree, timeout, and upper_bound.
Default Constructor.
Sets the state of the object to the defaults as set by the PDU::PDU() constructor, plus the following:
Definition at line 77 of file RegisterPDU.cpp.
| bool agentxcpp::RegisterPDU::get_instance_registration | ( | ) | [inline] |
Get instance_registration flag.
The instance_registration flag is part of the PDU header and therefore located in the PDU class. However, it is used only by Register-PDUs, therefore the getter method is located here.
Definition at line 168 of file RegisterPDU.hpp.
References agentxcpp::PDU::instance_registration.
| byte_t agentxcpp::RegisterPDU::get_priority | ( | ) | [inline] |
| byte_t agentxcpp::RegisterPDU::get_range_subid | ( | ) | [inline] |
| oid agentxcpp::RegisterPDU::get_subtree | ( | ) | [inline] |
| byte_t agentxcpp::RegisterPDU::get_timeout | ( | ) | [inline] |
| uint32_t agentxcpp::RegisterPDU::get_upper_bound | ( | ) | [inline] |
| data_t RegisterPDU::serialize | ( | ) | const [virtual] |
Serialize the PDU.
Implements agentxcpp::PDU.
Definition at line 53 of file RegisterPDU.cpp.
References agentxcpp::PDUwithContext::add_header(), agentxcpp::PDU::agentxRegisterPDU, priority, range_subid, agentxcpp::oid::serialize(), subtree, timeout, upper_bound, and write32().
| void agentxcpp::RegisterPDU::set_instance_registration | ( | bool | ir | ) | [inline] |
Set instance_registration flag.
The instance_registration flag is part of the PDU header and therefore located in the PDU class. However, it is used only by Register-PDUs, therefore the setter method is located here.
Definition at line 180 of file RegisterPDU.hpp.
References agentxcpp::PDU::instance_registration.
| void agentxcpp::RegisterPDU::set_priority | ( | byte_t | priority | ) | [inline] |
| void agentxcpp::RegisterPDU::set_range_subid | ( | byte_t | range_subid | ) | [inline] |
| void agentxcpp::RegisterPDU::set_subtree | ( | oid | subtree | ) | [inline] |
| void agentxcpp::RegisterPDU::set_timeout | ( | byte_t | timeout | ) | [inline] |
| void agentxcpp::RegisterPDU::set_upper_bound | ( | uint32_t | upper_bound | ) | [inline] |
byte_t agentxcpp::RegisterPDU::priority [private] |
Definition at line 37 of file RegisterPDU.hpp.
Referenced by get_priority(), RegisterPDU(), serialize(), and set_priority().
byte_t agentxcpp::RegisterPDU::range_subid [private] |
Definition at line 39 of file RegisterPDU.hpp.
Referenced by get_range_subid(), RegisterPDU(), serialize(), and set_range_subid().
oid agentxcpp::RegisterPDU::subtree [private] |
Definition at line 38 of file RegisterPDU.hpp.
Referenced by get_subtree(), RegisterPDU(), serialize(), and set_subtree().
byte_t agentxcpp::RegisterPDU::timeout [private] |
Definition at line 36 of file RegisterPDU.hpp.
Referenced by get_timeout(), RegisterPDU(), serialize(), and set_timeout().
uint32_t agentxcpp::RegisterPDU::upper_bound [private] |
Definition at line 40 of file RegisterPDU.hpp.
Referenced by get_upper_bound(), RegisterPDU(), serialize(), and set_upper_bound().