This class represents an Unregister-PDU.
More...
#include <UnregisterPDU.hpp>
List of all members.
Additional Inherited Members |
| | PDUwithContext (binary::const_iterator &pos, const binary::const_iterator &end, bool big_endian) |
| | Parse constructor.
|
| void | add_header (type_t type, binary &payload) const |
| | Add PDU header and context field to the payload.
|
| | PDUwithContext () |
| | Default Constructor.
|
| | PDU (binary::const_iterator &pos, const binary::const_iterator &end, bool big_endian) |
| | Parse constructor.
|
| | PDU () |
| | Default constructor.
|
| virtual | ~PDU () |
| | Destructor.
|
Detailed Description
This class represents an Unregister-PDU.
Definition at line 36 of file UnregisterPDU.hpp.
Constructor & Destructor Documentation
| UnregisterPDU::UnregisterPDU |
( |
binary::const_iterator & |
pos, |
|
|
const binary::const_iterator & |
end, |
|
|
bool |
big_endian |
|
) |
| |
Parse constructor.
Construct the object by parsing a stream. See Parsing incoming PDUs for details about PDU parsing.
- Parameters:
-
| 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. |
- Exceptions:
-
| parse_error | If parsing fails, for example because reading the stream fails or the PDU is malformed. |
Definition at line 24 of file UnregisterPDU.cpp.
References priority, range_subid, agentxcpp::read32(), subtree, and upper_bound.
| UnregisterPDU::UnregisterPDU |
( |
| ) |
|
Default Constructor.
Sets the state of the object to the defaults as set by the PDU::PDU() constructor, plus the following:
- priority = 127 (The default when registering an object according to RFC 2741, section '6.2.3. The agentx-Register-PDU')
- subtree = null Object Identifier
- range_subid = 0
- upper_bound = null Object Identifier
Definition at line 76 of file UnregisterPDU.cpp.
Member Function Documentation
| uint8_t agentxcpp::UnregisterPDU::get_priority |
( |
| ) |
|
|
inline |
| uint8_t agentxcpp::UnregisterPDU::get_range_subid |
( |
| ) |
|
|
inline |
| oid agentxcpp::UnregisterPDU::get_subtree |
( |
| ) |
|
|
inline |
| uint32_t agentxcpp::UnregisterPDU::get_upper_bound |
( |
| ) |
|
|
inline |
| binary UnregisterPDU::serialize |
( |
| ) |
const |
|
virtual |
| void agentxcpp::UnregisterPDU::set_priority |
( |
uint8_t |
priority | ) |
|
|
inline |
| void agentxcpp::UnregisterPDU::set_range_subid |
( |
uint8_t |
range_subid | ) |
|
|
inline |
| void agentxcpp::UnregisterPDU::set_subtree |
( |
oid |
subtree | ) |
|
|
inline |
| void agentxcpp::UnregisterPDU::set_upper_bound |
( |
uint32_t |
upper_bound | ) |
|
|
inline |
Member Data Documentation
| uint8_t agentxcpp::UnregisterPDU::priority |
|
private |
| uint8_t agentxcpp::UnregisterPDU::range_subid |
|
private |
| oid agentxcpp::UnregisterPDU::subtree |
|
private |
| uint32_t agentxcpp::UnregisterPDU::upper_bound |
|
private |
The documentation for this class was generated from the following files: