MAK Data Logger API Documentation for DIS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Types | Public Member Functions | Protected Attributes
MAKLogger::DtMessageBuffer Class Reference

Message buffer class responsible for storing a list of messages and iterating through that list. More...

+ Collaboration diagram for MAKLogger::DtMessageBuffer:

Public Types

typedef std::list< DtPacket * > PacketList
 

Public Member Functions

 DtMessageBuffer ()
 CTOR creates an empty buffer. More...
 
 ~DtMessageBuffer ()
 DTOR clears the buffer before destructing. More...
 
const DtPacketfirst () const
 Get the first packet in the buffer. More...
 
const DtPacketlast () const
 Get the last packet in the buffer. More...
 
void setTime (DtAbsoluteTime)
 Sets the time of all messages in the buffer to the given time. More...
 
void sortByTime ()
 Sorts all messages by their time. More...
 
void offsetTime (DtRelativeTime offset)
 Adds the offset time to all messages in the buffer. More...
 
void add (DtPacket *)
 Packet is added to list and ownership is maintained. More...
 
void removeByType (DtPacket::DtPacketType)
 All packets of the given type are removed from the buffer. More...
 
void clear ()
 Clears the buffer and deletes all packets. More...
 
void merge (DtMessageBuffer &secondary)
 Merge two message buffers together, the secondary message buffer is cleared. More...
 
void merge (DtMessageBuffer &secondary, const DtAbsoluteTime &time, bool inclusive)
 Merge two message buffers together up to a specific time. More...
 
void merge (DtMessageBuffer &secondary, int count)
 Move a number of packets from the secondary head to the this buffer's tail. More...
 
size_t size () const
 Get the size of the buffer in packets. More...
 
size_t sizeOfPackets () const
 Get the size of the packets in the buffer in bytes. More...
 
void unfilterAll () const
 unfilter each packet in buffer. More...
 
void addAttribute (DtPacketAttributeSP attr)
 Add the attribute to each packet. More...
 
PacketList::iterator begin ()
 Get the iterator pointing to the first packet. More...
 
PacketList::const_iterator begin () const
 Get the iterator pointing to the first packet. More...
 
PacketList::iterator end ()
 Get the iterator pointing beyond the last packet. More...
 
PacketList::const_iterator end () const
 Get the iterator pointing beyond the last packet. More...
 

Protected Attributes

PacketList myMessages
 

Detailed Description

Message buffer class responsible for storing a list of messages and iterating through that list.

Member Typedef Documentation

Constructor & Destructor Documentation

MAKLogger::DtMessageBuffer::DtMessageBuffer ( )

CTOR creates an empty buffer.

MAKLogger::DtMessageBuffer::~DtMessageBuffer ( )

DTOR clears the buffer before destructing.

Member Function Documentation

void MAKLogger::DtMessageBuffer::add ( DtPacket )

Packet is added to list and ownership is maintained.

void MAKLogger::DtMessageBuffer::addAttribute ( DtPacketAttributeSP  attr)

Add the attribute to each packet.

PacketList::iterator MAKLogger::DtMessageBuffer::begin ( )

Get the iterator pointing to the first packet.

PacketList::const_iterator MAKLogger::DtMessageBuffer::begin ( ) const

Get the iterator pointing to the first packet.

void MAKLogger::DtMessageBuffer::clear ( )

Clears the buffer and deletes all packets.

PacketList::iterator MAKLogger::DtMessageBuffer::end ( )

Get the iterator pointing beyond the last packet.

PacketList::const_iterator MAKLogger::DtMessageBuffer::end ( ) const

Get the iterator pointing beyond the last packet.

const DtPacket* MAKLogger::DtMessageBuffer::first ( ) const

Get the first packet in the buffer.

const DtPacket* MAKLogger::DtMessageBuffer::last ( ) const

Get the last packet in the buffer.

void MAKLogger::DtMessageBuffer::merge ( DtMessageBuffer secondary)

Merge two message buffers together, the secondary message buffer is cleared.

void MAKLogger::DtMessageBuffer::merge ( DtMessageBuffer secondary,
const DtAbsoluteTime time,
bool  inclusive 
)

Merge two message buffers together up to a specific time.

All messages before that time are moved from the secondary buffer into this buffer. The time boundary can be inclusive.

void MAKLogger::DtMessageBuffer::merge ( DtMessageBuffer secondary,
int  count 
)

Move a number of packets from the secondary head to the this buffer's tail.

void MAKLogger::DtMessageBuffer::offsetTime ( DtRelativeTime  offset)

Adds the offset time to all messages in the buffer.

If the resulting time of any of the packets is less than zero the timestamp will be set to zero.

void MAKLogger::DtMessageBuffer::removeByType ( DtPacket::DtPacketType  )

All packets of the given type are removed from the buffer.

void MAKLogger::DtMessageBuffer::setTime ( DtAbsoluteTime  )

Sets the time of all messages in the buffer to the given time.

size_t MAKLogger::DtMessageBuffer::size ( ) const

Get the size of the buffer in packets.

size_t MAKLogger::DtMessageBuffer::sizeOfPackets ( ) const

Get the size of the packets in the buffer in bytes.

void MAKLogger::DtMessageBuffer::sortByTime ( )

Sorts all messages by their time.

void MAKLogger::DtMessageBuffer::unfilterAll ( ) const

unfilter each packet in buffer.

Member Data Documentation

PacketList MAKLogger::DtMessageBuffer::myMessages
protected

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

Document ID: Generated on Thu Dec 18 15:35:09 EST 2025 from SVN revision 282494
Copyright © 2024 MAK Technologies. All Rights Reserved (www.mak.com)