MAK Data Logger API Documentation for DIS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
messageBuffer.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 1992-2010 VT MAK
3 ** All rights reserved.
4 ******************************************************************************/
5 
8 
9 #ifndef messageBuffer_H_
10 #define messageBuffer_H_
11 
12 #include <lgrCore/lgrCore.h>
13 #include "packet.h"
14 
15 #include <list>
16 
17 namespace MAKLogger
18 {
19 
24  {
25  public:
26 
27  typedef std::list<DtPacket*> PacketList;
28 
31 
33  ~DtMessageBuffer();
34 
36  PacketList::iterator begin();
38  PacketList::const_iterator begin() const;
40 
42  PacketList::iterator end();
44  PacketList::const_iterator end() const;
46 
48  const DtPacket* first() const;
49 
51  const DtPacket* last() const;
52 
54  void setTime(DtAbsoluteTime);
55 
57  void sortByTime();
58 
62  void offsetTime(DtRelativeTime offset);
63 
65  void add(DtPacket*);
66 
68  void removeByType(DtPacket::DtPacketType);
69 
71  void clear();
72 
75  void merge(DtMessageBuffer& secondary);
76 
80  void merge(DtMessageBuffer& secondary,const DtAbsoluteTime& time,
81  bool inclusive);
82 
85  void merge(DtMessageBuffer& secondary,int count);
86 
88  size_t size() const;
89 
91  size_t sizeOfPackets() const;
92 
94  void unfilterAll() const;
95 
97  void addAttribute(DtPacketAttributeSP attr);
98 
99  protected:
101  };
102 
103 }
104 
105 #endif
Relative Time, an elapsed duration of time, no implied measurement, could be seconds/cycles or ticks ...
Definition: absoluteTime.h:28
DtPacketType
MIGRATION Info Same values as LtPacketKind in Logger 3.x versions.
Definition: packet.h:47
Message buffer class responsible for storing a list of messages and iterating through that list...
Definition: messageBuffer.h:23
PacketList myMessages
Definition: messageBuffer.h:100
A generic packed of typed binary data.
Definition: packet.h:41
#define DT_DLL_LGRCORE
Definition: lgrCore.h:19
Contains MAKLogger::DtPacket and MAKLogger::DtPacketAttribute classes.
std::list< DtPacket * > PacketList
Definition: messageBuffer.h:27
DtBoost::shared_ptr< DtPacketAttribute > DtPacketAttributeSP
Definition: packet.h:37
Absolute Time, a particular measured instance in time, could be thought of as a set of relative times...
Definition: absoluteTime.h:82
Contains lgrCore library definitions.

Document ID: Generated on Mon Mar 22 15:30:17 EDT 2021 from SVN revision 226440
Copyright © 2021 MAK Technologies. All Rights Reserved (www.mak.com)