9 #if !defined __UHH_FILEWALKER_H
10 #define __UHH_FILEWALKER_H
13 #include "uhh_grouphist.h"
14 #include "uhh_dataitem.h"
15 #include "uhh_messageitem.h"
16 #include "ENUM_UhhMsg_Err.h"
17 #include "ENUM_Uhh_ScaleType.h"
18 #include "ENUM_ScaleType.h"
26 enum ENUM_UhhWalkCode {
27 ENUM_UhhWalkCode_Progressed,
28 ENUM_UhhWalkCode_HitTime,
29 ENUM_UhhWalkCode_HitSample,
30 ENUM_UhhWalkCode_HitMessage
41 ENUM_UhhMsg_Err getBasicInfo();
43 ENUM_UhhMsg_Err nextDataRecord(ENUM_UhhWalkCode *z_peCode,
45 ENUM_UhhMsg_Err open(
UhhSlice *z_pSlice);
47 bool z_bAcquireSamp,
bool z_bAcquireMsgs);
48 ENUM_UhhMsg_Err prevDataRecord(ENUM_UhhWalkCode *z_peCode,
50 bool z_bStopAtSample);
51 ENUM_UhhMsg_Err prevMsgRecord(ENUM_UhhWalkCode *z_peCode,
52 double z_dEarliestTix);
53 void setMessageFilter(sint32 z_nCategories);
54 void setMessageAcquisition(
bool z_bAcquire);
55 ENUM_UhhMsg_Err setTix(
double z_dTix);
56 ENUM_UhhMsg_Err setTixEarliest();
57 ENUM_UhhMsg_Err setTixLatest();
59 static ENUM_ScaleType uhhToResScaleType( ENUM_Uhh_ScaleType z_nUhhType );
118 Block *m_pBlkEarliest;
122 Block *m_pCacheBlock;
129 sint32 m_nBcacheSize;
130 sint32 m_nBcacheOffset;
131 sint32 m_nBcachePrefSeekOffset;
136 uint8 *m_puRecChecksum;
145 double m_dTixWalkInterval;
146 double m_dTixWalkSample;
149 uint16 m_uWalkPoints;
150 WalkPoint *m_pWalkPoints;
154 uint16 m_uWalkerPass;
160 sint32 m_lPrevMsgOffset;
161 double m_dMsgCurrentPtime;
168 bool m_bVerifyChecksum;
177 ENUM_UhhMsg_Err bFindEndOrRef(sint32 *z_pnSeek);
178 ENUM_UhhMsg_Err bFindMsg(sint32 *z_pnSeek);
179 ENUM_UhhMsg_Err bInit(sint32 z_nMaxSize, sint32 z_nPrefSeekOffset);
180 ENUM_UhhMsg_Err bRead(sint32 *z_pnByte);
181 ENUM_UhhMsg_Err bReadFlexDouble(
double *z_pdValue);
182 ENUM_UhhMsg_Err bReadFlexInt(sint32 *z_pnValue);
183 ENUM_UhhMsg_Err bReadMetabyte(sint32 *z_pnValue);
184 ENUM_UhhMsg_Err bReadSint32(sint32 *z_pnValue);
185 ENUM_UhhMsg_Err bReadUint8(uint8 *z_puValue);
186 ENUM_UhhMsg_Err bSeek(sint32 z_nPosition);
189 ENUM_UhhMsg_Err cFindNextRecord(sint32 z_nIdMin, sint32 z_nIdMax);
190 ENUM_UhhMsg_Err cFrameNextRecord();
191 ENUM_UhhMsg_Err cFramePrevRecord();
192 ENUM_UhhMsg_Err cLoad(Block *z_pBlock);
193 ENUM_UhhMsg_Err cLoadOffset(sint32 z_nOffset);
194 ENUM_UhhMsg_Err cNextDataRecord(
enum ENUM_UhhWalkCode *z_peCode,
196 ENUM_UhhMsg_Err cPrevDataRecord(
enum ENUM_UhhWalkCode *z_peCode,
198 bool z_bStopAtSample);
199 ENUM_UhhMsg_Err cPrevMsgRecord(
enum ENUM_UhhWalkCode *z_peCode,
201 ENUM_UhhMsg_Err cReadDouble(
double *z_pdValue,
202 sint32 z_nBytes =
sizeof(
double));
203 ENUM_UhhMsg_Err cReadFlexDouble(
double *z_dValue);
204 ENUM_UhhMsg_Err cReadFlexInt(sint32 *z_pValue);
205 ENUM_UhhMsg_Err cReadFloat(
float *z_pfValue,
206 sint32 z_nBytes =
sizeof(
float));
207 ENUM_UhhMsg_Err cReadHistoryHeader();
208 ENUM_UhhMsg_Err cReadInterval(
double *z_pdTix);
209 ENUM_UhhMsg_Err cReadRefData();
210 ENUM_UhhMsg_Err cReadSample();
211 ENUM_UhhMsg_Err cReadSegmentHeader();
212 ENUM_UhhMsg_Err cReadSint32(sint32 *z_pnValue);
213 ENUM_UhhMsg_Err cReadString(uc_char **z_pszValue);
214 ENUM_UhhMsg_Err cReadTix(
double *z_pdValue);
215 ENUM_UhhMsg_Err cReadUint16(uint16 *z_puValue);
216 ENUM_UhhMsg_Err cReadUint8(uint8 *z_puValue);
217 void cSkipBytes(sint32 z_BytesToSkip);
218 ENUM_UhhMsg_Err cVerifyRefData();
220 ENUM_UhhMsg_Err checkLastBlock();
221 ENUM_UhhMsg_Err createScaffold();
Definition: uhh_seghdr.h:116
Definition: uhh_dataitem.h:53
Definition: uhh_messageitem.h:17
Definition: uhh_histhdr.h:14
Definition: uhh_filewalker.h:35
Definition: uhh_heap.h:31
Definition: uhh_grouphist.h:52