PcapPlusPlus  Next
pcpp::GtpV2InformationElementBuilder Class Reference

#include <GtpLayer.h>

Inheritance diagram for pcpp::GtpV2InformationElementBuilder:
pcpp::TLVRecordBuilder

Public Member Functions

 GtpV2InformationElementBuilder (GtpV2InformationElement::Type infoElementType, const std::bitset< 4 > &crFlag, const std::bitset< 4 > &instance, const std::vector< uint8_t > &infoElementValue)
 
GtpV2InformationElement build () const
 

Detailed Description

A class for building GTPv2 information elements (IE). This builder receives the IE parameters in its c'tor, builds the IE raw buffer and provides a build() method to get a GtpV2InformationElement object out of it

Constructor & Destructor Documentation

◆ GtpV2InformationElementBuilder()

pcpp::GtpV2InformationElementBuilder::GtpV2InformationElementBuilder ( GtpV2InformationElement::Type  infoElementType,
const std::bitset< 4 > &  crFlag,
const std::bitset< 4 > &  instance,
const std::vector< uint8_t > &  infoElementValue 
)

A c'tor for building information elements (IE) which their value is a byte array. The GtpV2InformationElement object can be later retrieved by calling build().

Parameters
[in]infoElementTypeInformation elements (IE) type
[in]crFlagCR flag value
[in]instanceInstance value
[in]infoElementValueA byte array of the IE value

Member Function Documentation

◆ build()

GtpV2InformationElement pcpp::GtpV2InformationElementBuilder::build ( ) const

Build the GtpV2InformationElement object out of the parameters defined in the c'tor

Returns
The GtpV2InformationElement object