Represents a IndexAllocate-PDU. More...
#include <IndexAllocatePDU.hpp>
Public Member Functions | |
| IndexAllocatePDU (data_t::const_iterator &pos, const data_t::const_iterator &end, bool big_endian) | |
| Parse constructor. | |
| IndexAllocatePDU () | |
| Default Constructor. | |
| vector< varbind > & | get_vb () |
| Get the VarBind list. | |
| virtual data_t | serialize () |
| Serialize the PDU. | |
Private Attributes | |
| vector< varbind > | vb |
| The VarBindList containing the index names and values requested for allocation. | |
Represents a IndexAllocate-PDU.
Definition at line 35 of file IndexAllocatePDU.hpp.
| IndexAllocatePDU::IndexAllocatePDU | ( | 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 25 of file IndexAllocatePDU.cpp.
References vb.
| agentxcpp::IndexAllocatePDU::IndexAllocatePDU | ( | ) | [inline] |
Default Constructor.
Sets the state of the object to the defaults as set by the PDU::PDUwithContext() constructor and initializes vb to be empty.
Definition at line 76 of file IndexAllocatePDU.hpp.
| vector<varbind>& agentxcpp::IndexAllocatePDU::get_vb | ( | ) | [inline] |
Get the VarBind list.
This function returns a reference to the internal VarBind list, which can then be modified in place.
Definition at line 87 of file IndexAllocatePDU.hpp.
References vb.
| data_t IndexAllocatePDU::serialize | ( | ) | [virtual] |
Serialize the PDU.
Definition at line 40 of file IndexAllocatePDU.cpp.
References agentxcpp::PDUwithContext::add_header(), agentxcpp::PDU::agentxIndexAllocatePDU, and vb.
vector<varbind> agentxcpp::IndexAllocatePDU::vb [private] |
The VarBindList containing the index names and values requested for allocation.
Definition at line 42 of file IndexAllocatePDU.hpp.
Referenced by get_vb(), IndexAllocatePDU(), and serialize().