MAK Data Logger API Documentation for HLA
lgrLegacyCheckpointedFormat.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 lgrLegacyCheckpointedFormat_H_
10 #define lgrLegacyCheckpointedFormat_H_
11 
13 #include <vlutil/vlNetTypes.h>
14 
15 namespace MAKLogger
16 {
17 
18  class DtLgrPacketIndexer;
19 
25  {
26  protected:
28  public:
30 
31  private:
36  public:
37 
38  const static DtNetU32 theEOFMagic;
39 
41  virtual void copyMetaData(const DtLgrFileFormatter* formatter);
42 
47  virtual bool seekToFirstPacket(int type);
48 
53  virtual bool seekToLastPacket(int type);
54 
58  virtual bool seekToFirstPacketBeforeTime(int type,double time);
59 
64  virtual bool seekToFirstPacketAfterTime(int type,double time);
65 
66 
72  virtual bool seekToNextPacket(int type);
73 
78  virtual bool seekToPreviousPacketOfType(int type);
79 
82  virtual void writePacket(const DtPacket& packet);
83 
90  virtual size_t writePacket(const DtPacket& packet,void* memory,size_t memorySize,
91  int fileWriteBufferOffset = -1);
92 
94  virtual bool hasCheckpoints() const;
95 
97  virtual bool isEofValid() const;
98 
100  virtual double duration() const;
101 
103  virtual void setDuration(double duration);
104 
105  protected:
106 
109  virtual void initReadEndMetaData();
110 
112  virtual void readRecordingInfoMetaData();
113 
115  virtual void decodeRecordingInfoPacket(const DtPacket& packet);
116 
118  virtual void writeRecordingData();
119 
121  virtual void readIndexTableMetaData();
122 
124  virtual void writeIndexTable();
125 
127  virtual bool checkEofMagic();
128 
130  virtual void writeEofMagic();
131 
133  virtual bool jumpToIndex(int index);
134 
136  virtual DtPacket* encodePacket(DtPacket::DtPacketType type);
137 
139  virtual void decodePacket(DtPacket* packet);
140 
142 
143  virtual DtLgrPacketIndexer* packetIndexer();
144  virtual const DtLgrPacketIndexer* packetIndexer() const;
146 
147  protected:
148 
150  double myDuration;
156  };
157 }
158 
159 #endif

Document ID: Generated on Thu Apr 10 18:53:01 EDT 2014 from SVN revision 138105
Copyright © 2005-2012 VT MÄK. All Rights Reserved (www.mak.com)