source: Sophya/trunk/Poubelle/archTOI.old/toisvr.h@ 426

Last change on this file since 426 was 426, checked in by ansari, 26 years ago

alpha delta a partir croisement galax

File size: 1.3 KB
RevLine 
[350]1// toisvr.h
2// Eric Aubourg CEA/DAPNIA/SPP juillet 1999
3
4
[310]5#ifndef TOISVR_H
6#define TOISVR_H
7
8#include "toiiter.h"
[407]9#include <list>
[310]10
[358]11class AuxGPS;
12
[407]13class RequestHandler {
[310]14public:
[407]15 virtual bool processTOIReq(string line, string toiname, TOIKind toi, int index,
16 bool interp, bool repet, bool flag, bool notrig)=0;
17 virtual bool processOption(string keyw, string args)=0;
18};
19
20class TOISvr : public RequestHandler {
21public:
[310]22 TOISvr();
23
[407]24 void setDirectory(string);
25 void addFile(string);
26 void onBoardRecorderFiles(bool);
27 void useAuxGPS(AuxGPS* gps);
[310]28
[407]29 void setTimeInterval(double tStart, double tEnd);
[426]30 void setUnderSample(int n);
[310]31
[407]32 void addInfo(TOIKind kind, int index, bool triggering=true, bool interp=false);
33 void addInfo(TOIKind kind, bool triggering=true, bool interp=false);
[310]34
[407]35 void readReq(istream& s);
[310]36
[407]37 TOIIter doQuery();
38
39 bool processRequest(string line);
40 void registerReqHandler(RequestHandler*);
41 virtual bool processTOIReq(string line, string toiname, TOIKind toi, int index,
42 bool interp, bool repet, bool flag, bool notrig);
43 virtual bool processOption(string keyw, string args);
[310]44
[416]45 void defaultInclude();
46
[310]47protected:
48 TOIIter iter;
[407]49 list<RequestHandler*> handlers;
[417]50
51 bool initDone;
[310]52};
53
54
55#endif
Note: See TracBrowser for help on using the repository browser.