-
Notifications
You must be signed in to change notification settings - Fork 0
/
Fast2D.h
51 lines (34 loc) · 1.04 KB
/
Fast2D.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
/*
-------------------------------------------------------------------------
OBJECT NAME: Fast2D.h
FULL NAME: NCAR/RAF Fast2D.
COPYRIGHT: University Corporation for Atmospheric Research, 2018-2024
-------------------------------------------------------------------------
*/
#ifndef _OAP_FAST2D_H_
#define _OAP_FAST2D_H_
#include "Probe.h"
namespace OAP
{
/* -------------------------------------------------------------------- */
/*
* Probe sub-class for NCAR/RAF Fast2D probes.
*/
class Fast2D : public Probe
{
public:
Fast2D(UserConfig *cfg, const char xml_string[], int recSize);
struct recStats ProcessRecord(const P2d_rec * record, float version);
bool isSyncWord(const unsigned char *p);
bool isOverloadWord(const unsigned char *p);
static const unsigned char SyncString[3];
static const unsigned char OverldString[3];
protected:
void f2d_init();
uint64_t
TimeWord_Microseconds(const unsigned char *p);
// DOF flag is in different position of sync byte 3 for v1 and v2 of probe.
unsigned char _dofMask;
};
}
#endif