26 DreFile(
DreHistMgr *z_pHistMgr, uint8 z_uGroup, uint32 z_uBlockSize, uint8 z_uRecStatus);
44 static ENUM_Uhh_ScaleType resToUhhScaleType( ENUM_ScaleType z_nInternalType );
46 void closeStream(FILE **z_pStream,
char *z_pFuncName,
char *z_pFileName);
47 void disableRecording();
49 int flushBuffer(
char *z_pFuncName,
DreBuffer *z_pBuf);
50 void failSlice(
char *z_pFuncName,
char *z_pDesc);
51 uint8 getGroup(){
return(m_uGroup);}
52 FILE *openForAppend(
char *z_pFuncName);
55 void reopen(
double z_dTime,
bool z_bBatchStart = FALSE);
56 void setNotRecording();
57 bool startedNewFile() {
return(m_uSize == m_uHeaderEnd);}
58 void updateTime(
double z_dTime);
59 static bool forceRemove(
char *z_szPathName);
63 inline uint32 getSize() {
return m_uSize;}
68 static inline uint32 getTestMode()
72 static inline void setTestMode(uint32 z_uTestMode)
74 m_uTestMode = z_uTestMode;
83 #define MAX_TICK_BYTES 8 // => 56 bits, more than a double can handle
84 static const double s_adPow128[MAX_TICK_BYTES];
87 bool m_bRecordingActive;
90 uc_char m_acGroupName[DRE_UHH_GROUP_NAME_L + 1];
96 uint32 m_uSize, m_uRefDataRecord, m_uBlockGuide;
97 uint8 m_uRecStatus, m_uOldRecStatus;
99 uint32 m_uMsgRefRecord;
101 DreBuffer *m_pHeaderBuf, *m_pOldHeaderBuf;
105 bool m_bOutputBatchHdrs;
106 uc_char *m_szBatchFileName;
133 union {
double dPV;
float fPV;};
138 union {
double dNewPV;
float fNewPV;};
153 sint32 m_nTimeSegment;
155 double m_dNewStartTime;
156 double m_dLeaderTime;
157 double m_dCurrentTime;
158 double m_dSampleTime;
160 double m_dNewInterval;
163 sint32 m_nTzRawOffset;
166 uint16 m_uSamplesPerFlush;
167 uint16 m_uCountPerFlush;
168 uint16 m_uSamplesPerCheckFS;
169 uint16 m_uCountPerCheckFS;
172 uint8 m_uLtdUnflushed;
173 #define DRE_LTD_BUF_LEN 20
174 double m_adLtdTimesBuf[DRE_LTD_BUF_LEN];
175 double *m_pdLtdTimesEnd;
176 double *m_pdLtdTimesOldest;
179 uint8 m_uTicksPerSec;
180 uint32 m_uUpdatePeriod;
181 uint32 m_uUpdatePeriodA;
182 uint32 m_uUpdatePeriodB;
184 static uint32 m_uTestMode;
190 uint8 compress(POINT_T *z_pPoint, VALUE_T *z_pValue,
196 void terminate(
bool z_bNoRefRec = FALSE);
199 void recInterval(
double z_dChange);
205 void putToRecBuf(uint32 z_uByte);
206 void putToHdrBuf(uint32 z_uByte);
210 void wrByte(uint32 z_uVal);
211 void wrChecksumAndFlush(uint8 z_uFlushingStrategy);
212 void wrFloat32(
float z_fVal);
213 void wrFloat32(
float z_fVal, uint8 z_uBytes);
214 void wrFloat64(
double z_dVal);
215 void wrFloat64(
double z_dVal, uint8 z_uBytes);
216 void wrRecordId(uint32 z_uVal);
217 void wrSint32(sint32 z_nVal);
218 void wrString(
char *z_sz);
219 void wrString(uc_char *z_sz);
220 void wrTicks(
double z_dTicks);
221 void wrUint16(uint32 z_uVal);
222 void wrUint32(uint32 z_uVal);
223 void wrUintF(uint32 z_uVal);
Definition: dre_msg.h:256
Definition: dre_hist.h:19
Definition: dre_msg.h:297
Definition: dre_buff.h:16
Definition: dre_file.h:20
Definition: dre_msg.h:172
Definition: dre_msg.h:183
Definition: dre_msg.h:123
Definition: dre_msg.h:245
Definition: dre_msg.h:216
Definition: dre_msg.h:149
Definition: dre_msg.h:204
Definition: dre_hmgr.h:24
Definition: dre_msg.h:192
Definition: dre_msg.h:266
Definition: dre_msg.h:156