MAK Data Logger API Documentation for HLA
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
lgrGenericFileFormats.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 1992-2025 MAK Technologies, Inc
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 //and Contains
12 
13 
14 #pragma once
15 
17 
18 namespace MAKLogger
19 {
24  {
25  public:
28 
30  virtual DtTime tapeTimeDate();
31 
33  virtual DtFloat64 recordingDuration();
34 
36  virtual const DtPacket* configPacket();
37 
39  virtual DtString description() const;
40 
42  virtual void setDescription(DtString description);
43 
45  virtual DtLgrEntityTracker* entityTracker() const;
46 
47  virtual void setFileVersion(int version);
48 
49  protected:
50 
52  virtual DtLgrEntityTracker* entityTracker();
53 
55  virtual void readStartMetaData();
56 
58  virtual void readEndMetaData();
59 
61  virtual void writeStartMetaData();
62 
64  virtual void writeMiddleMetaData();
65 
67  virtual void writeEndMetaData();
68 
71  virtual void validateType(int type);
72 
74  virtual bool validateStartMetaDataType(int type);
75 
77  virtual bool validateEndMetaDataType(int type);
78 
80  virtual void validateStartMetaDataMap();
81 
83  virtual void validateEndMetaDataMap();
84 
86  virtual int decodeTypeFromFlags(unsigned int flags);
87 
89  virtual void decodeIndexPacket();
90 
92  virtual size_t currentPacketSize();
93 
95  virtual size_t currentPacketDataSize();
96 
98  virtual int currentPacketType();
99 
101  virtual double currentPacketTime();
102 
104  virtual void fillHeader(void* header, const DtPacket& packet);
105 
107  virtual bool writeHeader(int fd, const DtPacket& packet);
108 
110  virtual bool readHeader();
111 
113  virtual DtU32 headerNumBytes() const;
114 
116  virtual DtU32 headerNumBytes(const void* header) const;
117 
119  virtual DtU32 headerFlags() const;
120 
122  virtual DtU32 headerFlags(const void* header) const;
123 
125  virtual DtFloat64 headerArrivalTime() const;
126 
128  virtual DtFloat64 headerArrivalTime(const void* header) const;
129 
131  virtual DtU32 headerEntityId() const;
132 
134  virtual DtU32 headerEntityId(const void* header) const;
135 
137  virtual size_t headerSize() const;
138 
139  protected:
141 
142  // treat very last packet as index table if it doesn't otherwise validate,
143  // since in some earlier formats that packet type was not written correctly.
145 
148 
149  };
150 
151 
155  {
156  public:
157 
158  static DtLgrFileFormatter* createGenericFileFormat(DtLoggerFile* file);
159 
160  };
161 
162 }
Supported Generic File Formats for meta data read and description meta data write.
Definition: lgrGenericFileFormats.h:154
The format for checkpointed files which is based upon the uncheckpointed format.
Definition: lgrEntityTrackingFormat.h:25
Contains MAKLogger::DtLgrEntityTrackingFormat class.
An abstract logger file formatter.
Definition: lgrFileFormatter.h:33
int myFileVersion
file format version for the currently inspected file
Definition: lgrGenericFileFormats.h:147
The generic meta data read/write format.
Definition: lgrGenericFileFormats.h:23
DtPacket * myNewDescriptionPacket
Definition: lgrGenericFileFormats.h:140
A generic packed of typed binary data.
Definition: packet.h:41
#define DT_DLL_LGRCORE
Definition: lgrCore.h:19
Indexes packets in a file.
Definition: lgrEntityTracker.h:32
Base logger class which represents the basic Logger file.
Definition: loggerFile.h:25
bool myLastPacket
Definition: lgrGenericFileFormats.h:144

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)