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

This class represents an Unregister-PDU. More...

#include <UnregisterPDU.hpp>

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

List of all members.

Public Member Functions

void set_upper_bound (uint32_t upper_bound)
 Set the upper_bound.
uint32_t get_upper_bound ()
 Get the upper_bound.
void set_subtree (oid subtree)
 Set the subtree.
oid get_subtree ()
 Get the subtree.
void set_range_subid (byte_t range_subid)
 Set the range_subid.
byte_t get_range_subid ()
 Get the range_subid.
void set_priority (byte_t priority)
 Set the priority.
byte_t get_priority ()
 Get the priority.
 UnregisterPDU (data_t::const_iterator &pos, const data_t::const_iterator &end, bool big_endian)
 Parse constructor.
data_t serialize () const
 Serialize the PDU.
 UnregisterPDU ()
 Default Constructor.

Private Attributes

byte_t priority
byte_t range_subid
oid subtree
uint32_t upper_bound

Detailed Description

This class represents an Unregister-PDU.

Definition at line 32 of file UnregisterPDU.hpp.


Constructor & Destructor Documentation

UnregisterPDU::UnregisterPDU ( 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 24 of file UnregisterPDU.cpp.

References priority, range_subid, read32(), subtree, and upper_bound.

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

Get the priority.

Definition at line 96 of file UnregisterPDU.hpp.

References priority.

Get the range_subid.

Definition at line 81 of file UnregisterPDU.hpp.

References range_subid.

Get the subtree.

Definition at line 66 of file UnregisterPDU.hpp.

References subtree.

Get the upper_bound.

Definition at line 51 of file UnregisterPDU.hpp.

References upper_bound.

void agentxcpp::UnregisterPDU::set_priority ( byte_t  priority) [inline]

Set the priority.

Definition at line 89 of file UnregisterPDU.hpp.

References priority.

void agentxcpp::UnregisterPDU::set_range_subid ( byte_t  range_subid) [inline]

Set the range_subid.

Definition at line 74 of file UnregisterPDU.hpp.

References range_subid.

void agentxcpp::UnregisterPDU::set_subtree ( oid  subtree) [inline]

Set the subtree.

Definition at line 59 of file UnregisterPDU.hpp.

References subtree.

void agentxcpp::UnregisterPDU::set_upper_bound ( uint32_t  upper_bound) [inline]

Set the upper_bound.

Definition at line 44 of file UnregisterPDU.hpp.

References upper_bound.


Member Data Documentation


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