Changeset 407 in Sophya for trunk/Poubelle/archTOI.old/toisvr.h


Ignore:
Timestamp:
Sep 18, 1999, 2:08:23 PM (26 years ago)
Author:
ansari
Message:

apres grenoble

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Poubelle/archTOI.old/toisvr.h

    r394 r407  
    77
    88#include "toiiter.h"
     9#include <list>
    910
    1011class AuxGPS;
    1112
    12 class TOISvr {
     13class RequestHandler {
     14public:
     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 {
    1321public:
    1422  TOISvr();
    1523 
    16   void SetDirectory(string);
    17   void AddFile(string);
    18   void OnBoardRecorderFiles(bool);
    19   void UseAuxGPS(AuxGPS* gps);
     24  void setDirectory(string);
     25  void addFile(string);
     26  void onBoardRecorderFiles(bool);
     27  void useAuxGPS(AuxGPS* gps);
    2028 
    21   void SetTimeInterval(double tStart, double tEnd);
     29  void setTimeInterval(double tStart, double tEnd);
    2230 
    23   void AddInfo(TOIKind kind, int index, bool triggering=true, bool interp=false);
    24   void AddInfo(TOIKind kind, bool triggering=true, bool interp=false);
     31  void addInfo(TOIKind kind, int index, bool triggering=true, bool interp=false);
     32  void addInfo(TOIKind kind, bool triggering=true, bool interp=false);
    2533 
    26   TOIIter DoQuery();
     34  void readReq(istream& s);
    2735 
     36  TOIIter doQuery();
     37
     38  bool processRequest(string line);
     39  void registerReqHandler(RequestHandler*);
     40  virtual bool processTOIReq(string line, string toiname, TOIKind toi, int index,
     41                             bool interp, bool repet, bool flag, bool notrig);
     42  virtual bool processOption(string keyw, string args);
    2843 
    2944protected:
    3045  TOIIter iter;
     46  list<RequestHandler*> handlers;
    3147};
    3248
Note: See TracChangeset for help on using the changeset viewer.