openDAQ
Open data acquisition platform
GenericPacketPtr< InterfaceType > Class Template Reference

Base packet type. Data, Value, and Event packets are all also packets. Provides the packet's unique ID that is unique to a given device, as well as the packet type. More...

Detailed Description

template<typename InterfaceType>
class GenericPacketPtr< InterfaceType >

Base packet type. Data, Value, and Event packets are all also packets. Provides the packet's unique ID that is unique to a given device, as well as the packet type.

Public Member Functions

daq::PacketType getType () const
 Gets the packet's type. More...
 
void subscribeForDestructNotification (const daq::PacketDestructCallbackPtr &packetDestructCallback) const
 Subscribes for notification when the packet is destroyed. More...
 
daq::SizeT getRefCount () const
 Gets the reference count of the packet. More...
 

Member Function Documentation

◆ getRefCount()

daq::SizeT getRefCount ( ) const
inline

Gets the reference count of the packet.

Returns
The reference count of the packet.

◆ getType()

daq::PacketType getType ( ) const
inline

Gets the packet's type.

Returns
The packet type.

◆ subscribeForDestructNotification()

void subscribeForDestructNotification ( const daq::PacketDestructCallbackPtr &  packetDestructCallback) const
inline

Subscribes for notification when the packet is destroyed.

Parameters
packetDestructCallbackThe callback that is called when the packet is destroyed.