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
|
#include "Mille.h"
#include "mille_c_wrap.h"
extern "C" Mille *mille_new(const char *outFileName,
int asBinary,
int writeZero)
{
return new Mille(outFileName, asBinary, writeZero);
}
extern "C" void mille_free(Mille *m)
{
delete m;
}
extern "C" void mille_add_measurement(Mille *m,
int NLC, const float *derLc,
int NGL, const float *derGl,
const int *label, float rMeas,
float sigma)
{
m->mille(NLC, derLc, NGL, derGl, label, rMeas, sigma);
}
extern "C" void mille_add_special(Mille *m,
int nSpecial,
const float *floatings,
const int *integers)
{
m->special(nSpecial, floatings, integers);
}
extern "C" void mille_delete_last_record(Mille *m)
{
m->kill();
}
extern "C" void mille_write_record(Mille *m)
{
m->end();
}
|