Rev | Line | |
---|
[350] | 1 | // toisvr.cc
|
---|
| 2 | // Eric Aubourg CEA/DAPNIA/SPP juillet 1999
|
---|
| 3 |
|
---|
| 4 |
|
---|
[310] | 5 | #include "toisvr.h"
|
---|
| 6 |
|
---|
| 7 | TOISvr::TOISvr()
|
---|
| 8 | {}
|
---|
| 9 |
|
---|
| 10 | void TOISvr::SetDirectory(string d) {
|
---|
| 11 | iter.directory = d;
|
---|
| 12 | }
|
---|
| 13 |
|
---|
[342] | 14 | void TOISvr::AddFile(string f) {
|
---|
| 15 | iter.files.insert(f);
|
---|
| 16 | }
|
---|
| 17 |
|
---|
[358] | 18 | void TOISvr::UseAuxGPS(AuxGPS* gps) {
|
---|
| 19 | if (iter.auxGPS) delete iter.auxGPS;
|
---|
| 20 | iter.auxGPS = gps;
|
---|
| 21 | }
|
---|
| 22 |
|
---|
| 23 |
|
---|
[342] | 24 | void TOISvr::SetMJD0(double t0) {
|
---|
| 25 | iter.tBlock0 = t0;
|
---|
| 26 | }
|
---|
| 27 |
|
---|
[350] | 28 | void TOISvr::SetPerEch(double t0) { // en secondes, periode d'echantillonnage
|
---|
| 29 | iter.perEch = t0;
|
---|
| 30 | }
|
---|
[342] | 31 |
|
---|
| 32 | void TOISvr::OnBoardRecorderFiles(bool x) {
|
---|
| 33 | iter.isOnBoardRecorder = x;
|
---|
| 34 | }
|
---|
| 35 |
|
---|
[310] | 36 |
|
---|
| 37 | void TOISvr::SetTimeInterval(double tStart, double tEnd) {
|
---|
[342] | 38 | if (tStart>0) iter.tStart = tStart;
|
---|
| 39 | if (tEnd>0) iter.tEnd = tEnd;
|
---|
[310] | 40 | }
|
---|
| 41 |
|
---|
| 42 | void TOISvr::AddInfo(TOIKind kind, int index, bool triggering, bool interp) {
|
---|
| 43 | TOIIter::info i;
|
---|
| 44 | i.kind = kind;
|
---|
| 45 | i.index = index;
|
---|
| 46 | i.triggering = triggering;
|
---|
| 47 | i.interpolated= interp;
|
---|
| 48 | iter.infos.push_back(i);
|
---|
| 49 | }
|
---|
| 50 |
|
---|
| 51 | void TOISvr::AddInfo(TOIKind kind, bool triggering, bool interp) {
|
---|
| 52 | AddInfo(kind,0,triggering,interp);
|
---|
| 53 | }
|
---|
| 54 |
|
---|
| 55 | TOIIter TOISvr::DoQuery() {
|
---|
| 56 | iter.Init();
|
---|
| 57 | return iter;
|
---|
| 58 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.