AgentXcpp  Revision:0.1.1
Internals Documentation
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Friends Pages
agentxcpp::TestSetPDU Class Reference

Represents an TestSet-PDU. More...

#include <TestSetPDU.hpp>

Inheritance diagram for agentxcpp::TestSetPDU:
Collaboration diagram for agentxcpp::TestSetPDU:

List of all members.

Public Member Functions

 TestSetPDU (binary::const_iterator &pos, const binary::const_iterator &end, bool big_endian)
 Parse constructor.
 TestSetPDU ()
 Default Constructor.
vector< varbind > & get_vb ()
 Get the VarBind list.
binary serialize () const
 Serialize the PDU.
- Public Member Functions inherited from agentxcpp::PDUwithContext
bool has_context ()
 Whether the PDU has a context.
Octet_String get_context ()
 Get context.
void set_context (Octet_String value)
 Set the PDU's context.
void remove_context ()
 Removes the context from the PDU.
- Public Member Functions inherited from agentxcpp::PDU
bool get_new_index ()
 Get new_index flag.
void set_new_index (bool new_index)
 Set new_index flag.
bool get_any_index ()
 Get any_index flag.
void set_any_index (bool any_index)
 Set any_index flag.
uint32_t get_sessionID ()
 Get sessionID.
void set_sessionID (uint32_t id)
 Set sessionID.
uint32_t get_transactionID ()
 Get transactionID.
void set_transactionID (uint32_t id)
 Set transactionID.
uint32_t get_packetID ()
 Get packetID.
void set_packetID (uint32_t packetID)
 Set packetID.

Private Attributes

vector< varbindvb
 The VarBind list.

Additional Inherited Members

- Protected Member Functions inherited from agentxcpp::PDUwithContext
 PDUwithContext (binary::const_iterator &pos, const binary::const_iterator &end, bool big_endian)
 Parse constructor.
void add_header (type_t type, binary &payload) const
 Add PDU header and context field to the payload.
 PDUwithContext ()
 Default Constructor.
- Protected Member Functions inherited from agentxcpp::PDU
 PDU (binary::const_iterator &pos, const binary::const_iterator &end, bool big_endian)
 Parse constructor.
 PDU ()
 Default constructor.
virtual ~PDU ()
 Destructor.

Detailed Description

Represents an TestSet-PDU.

Definition at line 36 of file TestSetPDU.hpp.


Constructor & Destructor Documentation

TestSetPDU::TestSetPDU ( binary::const_iterator &  pos,
const binary::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 TestSetPDU.cpp.

References vb.

agentxcpp::TestSetPDU::TestSetPDU ( )
inline

Default Constructor.

Sets the state of the object to the defaults as set by the PDU::PDU() constructor, and initializes vb to be empty.

Definition at line 78 of file TestSetPDU.hpp.


Member Function Documentation

vector<varbind>& agentxcpp::TestSetPDU::get_vb ( )
inline

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 89 of file TestSetPDU.hpp.

References vb.

binary TestSetPDU::serialize ( ) const
virtual

Serialize the PDU.

Implements agentxcpp::PDU.

Definition at line 40 of file TestSetPDU.cpp.

References agentxcpp::PDUwithContext::add_header(), agentxcpp::PDU::agentxTestSetPDU, and vb.


Member Data Documentation

vector<varbind> agentxcpp::TestSetPDU::vb
private

The VarBind list.

Definition at line 45 of file TestSetPDU.hpp.

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


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