Represents an AddAgentCaps-PDU. More...
#include <AddAgentCapsPDU.hpp>
Public Member Functions | |
| AddAgentCapsPDU (data_t::const_iterator &pos, const data_t::const_iterator &end, bool big_endian) | |
| Parse constructor. | |
| AddAgentCapsPDU () | |
| Default Constructor. | |
| AddAgentCapsPDU (oid id, Octet_String descr) | |
| Constructor. | |
| void | set_id (oid id) |
| Set the id field. | |
| oid | get_id () |
| Get the id field. | |
| void | set_descr (Octet_String descr) |
| Set the descr field. | |
| Octet_String | get_descr () |
| Get the descr field. | |
| virtual data_t | serialize () |
| Serialize the PDU. | |
Private Attributes | |
| oid | id |
| The Object Identifier containing the value of an invocation of the AGENT-CAPABILITIES macro. | |
| Octet_String | descr |
| An Octet String containing a DisplayString to be used as the value of sysORDescr corresponding to the sysORID value above. | |
Represents an AddAgentCaps-PDU.
Definition at line 33 of file AddAgentCapsPDU.hpp.
| AddAgentCapsPDU::AddAgentCapsPDU | ( | 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 AddAgentCapsPDU.cpp.
References descr.
| agentxcpp::AddAgentCapsPDU::AddAgentCapsPDU | ( | ) | [inline] |
Default Constructor.
Sets the state of the object to the defaults as set by the PDU::PDUwithContext() constructor. The fields 'id' and 'descr' are initialized to be empty.
Definition at line 87 of file AddAgentCapsPDU.hpp.
| AddAgentCapsPDU::AddAgentCapsPDU | ( | oid | id, |
| Octet_String | descr | ||
| ) |
Constructor.
Sets the state of the object to the defaults as set by the PDU::PDUwithContext() constructor. The fields id and descr are initialized according to the parameters.
| id | The value of the id field. |
| descr | The value of the descr field. |
Definition at line 56 of file AddAgentCapsPDU.cpp.
| Octet_String agentxcpp::AddAgentCapsPDU::get_descr | ( | ) | [inline] |
Get the descr field.
Definition at line 137 of file AddAgentCapsPDU.hpp.
References descr.
| oid agentxcpp::AddAgentCapsPDU::get_id | ( | ) | [inline] |
Get the id field.
Definition at line 117 of file AddAgentCapsPDU.hpp.
References id.
| data_t AddAgentCapsPDU::serialize | ( | ) | [virtual] |
Serialize the PDU.
Definition at line 40 of file AddAgentCapsPDU.cpp.
References agentxcpp::PDUwithContext::add_header(), agentxcpp::PDU::agentxAddAgentCapsPDU, descr, and agentxcpp::Octet_String::serialize().
| void agentxcpp::AddAgentCapsPDU::set_descr | ( | Octet_String | descr | ) | [inline] |
Set the descr field.
| descr | The new descr value. |
Definition at line 127 of file AddAgentCapsPDU.hpp.
References descr.
| void agentxcpp::AddAgentCapsPDU::set_id | ( | oid | id | ) | [inline] |
Set the id field.
| id | The new id value. |
Definition at line 107 of file AddAgentCapsPDU.hpp.
References id.
An Octet String containing a DisplayString to be used as the value of sysORDescr corresponding to the sysORID value above.
See RFC 2741, 6.2.14. "The agentx-AddAgentCaps-PDU" for details.
Definition at line 52 of file AddAgentCapsPDU.hpp.
Referenced by AddAgentCapsPDU(), get_descr(), serialize(), and set_descr().
oid agentxcpp::AddAgentCapsPDU::id [private] |
The Object Identifier containing the value of an invocation of the AGENT-CAPABILITIES macro.
See RFC 2741, 6.2.14. "The agentx-AddAgentCaps-PDU" for details.
Definition at line 43 of file AddAgentCapsPDU.hpp.
Referenced by AddAgentCapsPDU(), get_id(), and set_id().