openikev2::Payload_SA Class Reference

This class represents a SA Payload. More...

#include <payload_sa.h>

Inheritance diagram for openikev2::Payload_SA:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 Payload_SA ()
 Creates a new empty Payload_SA.
 Payload_SA (auto_ptr< Proposal > first_proposal)
 Creates a new Payload_SA inserting the fisrt proposal.
 Payload_SA (const Payload_SA &other)
 Creates a new Payload_SA cloning another one.
 Payload_SA (ByteBuffer &byte_buffer)
 Creates a new Payload_SA based on its binary representation.
void addProposal (auto_ptr< Proposal > proposal)
 Adds a proposal to the Payload SA.
virtual void getBinaryRepresentation (ByteBuffer &byte_buffer) const
 Appends the binary representation of the Payload at the end of the buffer, without the fixed header.
virtual string toStringTab (uint8_t tabs) const
 Construct a textual representation of the object, preceded of a num of tabs of size TAB_SIZE.
virtual auto_ptr< Payloadclone () const
 Cets a clone of this payload.

Public Attributes

AutoVector< Proposalproposals
 Proposals collections.

Detailed Description

This class represents a SA Payload.

Author:
Pedro J. Fernandez Ruiz, Alejandro Perez Mendez <pedroj.fernandez@dif.um.es, alejandro_perez@dif.um.es>


Constructor & Destructor Documentation

openikev2::Payload_SA::Payload_SA ( auto_ptr< Proposal first_proposal  ) 

Creates a new Payload_SA inserting the fisrt proposal.

Parameters:
first_proposal First proposal to be inserted in the Payload_SA

openikev2::Payload_SA::Payload_SA ( const Payload_SA other  ) 

Creates a new Payload_SA cloning another one.

Parameters:
other Other Payload_SA to be cloned

openikev2::Payload_SA::Payload_SA ( ByteBuffer byte_buffer  ) 

Creates a new Payload_SA based on its binary representation.

Parameters:
byte_buffer Buffer with its read pointer at the "payload length" field


Member Function Documentation

void openikev2::Payload_SA::addProposal ( auto_ptr< Proposal proposal  ) 

Adds a proposal to the Payload SA.

Parameters:
proposal Proposal to be added.

void openikev2::Payload_SA::getBinaryRepresentation ( ByteBuffer byte_buffer  )  const [virtual]

Appends the binary representation of the Payload at the end of the buffer, without the fixed header.

Parameters:
byte_buffer Byte buffer where append the binary representation

Implements openikev2::Payload.

string openikev2::Payload_SA::toStringTab ( uint8_t  tabs  )  const [virtual]

Construct a textual representation of the object, preceded of a num of tabs of size TAB_SIZE.

Parameters:
tabs Num of tabs preceding the textual representation.
Returns:
Textual tabulated represetation of the object.

Implements openikev2::Payload.

auto_ptr< Payload > openikev2::Payload_SA::clone (  )  const [virtual]

Cets a clone of this payload.

Returns:
Clone of the payload.

Implements openikev2::Payload.


Generated on Fri Jul 27 11:04:55 2007 for libopenikev2 by  doxygen 1.5.1