AgentXcpp  Revision:4ac4848
Internals Documentation
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends
agentxcpp::IndexDeallocatePDU Class Reference

Represents a IndexDeallocate-PDU. More...

#include <IndexDeallocatePDU.hpp>

Inheritance diagram for agentxcpp::IndexDeallocatePDU:
[legend]
Collaboration diagram for agentxcpp::IndexDeallocatePDU:
[legend]

List of all members.

Public Member Functions

 IndexDeallocatePDU (data_t::const_iterator &pos, const data_t::const_iterator &end, bool big_endian)
 Parse constructor.
 IndexDeallocatePDU ()
 Default Constructor.
vector< varbind > & get_vb ()
 Get the VarBind list.
virtual data_t serialize ()
 Serialize the PDU.

Private Attributes

vector< varbindvb
 The VarBind list containing the index names and values to be released.

Detailed Description

Represents a IndexDeallocate-PDU.

Definition at line 35 of file IndexDeallocatePDU.hpp.


Constructor & Destructor Documentation

IndexDeallocatePDU::IndexDeallocatePDU ( 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.

Parameters:
posIterator pointing to the current stream position. The iterator is advanced while reading the header.
endIterator pointing one element past the end of the current stream. This is needed to mark the end of the buffer.
big_endianWhether the serialized form of the PDU is in big_endian format.
Exceptions:
parse_errorIf parsing fails, for example because reading the stream fails or the PDU is malformed.

Definition at line 25 of file IndexDeallocatePDU.cpp.

References vb.

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 IndexDeallocatePDU.hpp.


Member Function Documentation

Get the VarBind list.

This function returns a reference to the internal VarBind list, which can then be modified in place.

Note:
There is no set_vb() function, because the VarBind list can be modified in place.

Definition at line 87 of file IndexDeallocatePDU.hpp.

References vb.


Member Data Documentation

The VarBind list containing the index names and values to be released.

Definition at line 42 of file IndexDeallocatePDU.hpp.

Referenced by get_vb(), IndexDeallocatePDU(), and serialize().


The documentation for this class was generated from the following files: