Newer
Older
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
#ifndef TRAJ_H
#define TRAJ_J 1
typedef struct {
int atype; /* 'i' or 'f' */
char *aname;
} TAttr;
typedef union {
int i;
float f;
} TVal;
typedef struct {
int nsamp;
TVal *tattr;
TVal *sattr;
} TrajArc;
typedef struct {
char magic[4]; /* 'l' 'T' xxx xxx */
int reqno;
int groupval;
int groupmask;
float startdatatime;
float duration;
float velrate;
float datarate;
float sampledt;
int reportIOformat;
int reportstyle;
int reportinterval;
int ntrajattrs;
TAttr *trajattr; /* getc32 => 'i' or 'f', followed by name-bytecount, followed by \000-padded name. Bytecount includes padding. */
/* might include "ttime0", "startdatatime" */
int nsampattrs;
TAttr *sampattr;
int ntrajectories;
TrajArc *arc;
} TrajHead;
#endif