SamplePacket Class Reference

Example for a packet class. More...

#include <samplePacket.hpp>

Public Member Functions

 SamplePacket (const SamplePacket &p)
 
 SamplePacket ()
 
 SamplePacket (void *data, uint16_t dataLen)
 
 ~SamplePacket ()
 
void * getData ()
 
uint16_t getDataLen ()
 
void setDataLen (uint16_t l)
 

Detailed Description

Example for a packet class.

This class is meant to show, which functions are expected to be exposed by any packet class

Definition at line 12 of file samplePacket.hpp.

Constructor & Destructor Documentation

◆ SamplePacket() [1/3]

SamplePacket::SamplePacket ( const SamplePacket p)
inline

Definition at line 18 of file samplePacket.hpp.

◆ SamplePacket() [2/3]

SamplePacket::SamplePacket ( )
inline

Definition at line 19 of file samplePacket.hpp.

◆ SamplePacket() [3/3]

SamplePacket::SamplePacket ( void *  data,
uint16_t  dataLen 
)
inline

Definition at line 20 of file samplePacket.hpp.

◆ ~SamplePacket()

SamplePacket::~SamplePacket ( )
inline

Definition at line 21 of file samplePacket.hpp.

Member Function Documentation

◆ getData()

void* SamplePacket::getData ( )
inline

Definition at line 23 of file samplePacket.hpp.

◆ getDataLen()

uint16_t SamplePacket::getDataLen ( )
inline

Definition at line 24 of file samplePacket.hpp.

◆ setDataLen()

void SamplePacket::setDataLen ( uint16_t  l)
inline

Definition at line 25 of file samplePacket.hpp.


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