AgentXcpp  Revision:0.1
Internals Documentation
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends
agentxcpp::IndexAllocatePDU Class Reference

Represents a IndexAllocate-PDU. More...

#include <IndexAllocatePDU.hpp>

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

List of all members.

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< varbindvb
 The VarBindList containing the index names and values requested for allocation.

Detailed Description

Represents a IndexAllocate-PDU.

Definition at line 35 of file IndexAllocatePDU.hpp.


Constructor & Destructor Documentation

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.

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

References vb.


Member Data Documentation

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().


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