| Rev | Line |   | 
|---|
| [223] | 1 | // This may look like C code, but it is really -*- C++ -*-
 | 
|---|
 | 2 | // Classe interpreteur de commande pour piapp 
 | 
|---|
 | 3 | // Reza      Aout 97 , Juillet,Aout 98
 | 
|---|
 | 4 | // LAL-IN2P3/CNRS
 | 
|---|
 | 5 | 
 | 
|---|
 | 6 | #ifndef PIACMD_H_SEEN
 | 
|---|
 | 7 | #define PIACMD_H_SEEN
 | 
|---|
 | 8 | 
 | 
|---|
| [249] | 9 | #include "machdefs.h"
 | 
|---|
| [223] | 10 | 
 | 
|---|
 | 11 | #include <fstream.h>
 | 
|---|
 | 12 | #include <string>
 | 
|---|
 | 13 | #include <map>
 | 
|---|
 | 14 | #if defined(__KCC__)
 | 
|---|
 | 15 | using std::string ;
 | 
|---|
 | 16 | #include <map.h>
 | 
|---|
 | 17 | #endif
 | 
|---|
 | 18 | 
 | 
|---|
 | 19 | #include "pdlmgr.h"
 | 
|---|
 | 20 | 
 | 
|---|
 | 21 | #include "ctimer.h"
 | 
|---|
 | 22 | #include "dlftypes.h"
 | 
|---|
 | 23 | 
 | 
|---|
 | 24 | class NamedObjMgr;
 | 
|---|
 | 25 | class PIStdImgApp;
 | 
|---|
 | 26 | 
 | 
|---|
 | 27 | 
 | 
|---|
 | 28 | class PIACmd {
 | 
|---|
 | 29 | public:
 | 
|---|
 | 30 |                 PIACmd(NamedObjMgr* omg=NULL, PIStdImgApp* app=NULL);
 | 
|---|
 | 31 |                 ~PIACmd();
 | 
|---|
 | 32 |   int           Exec(string& file);
 | 
|---|
 | 33 |   int           Do(string& line);
 | 
|---|
 | 34 | 
 | 
|---|
 | 35 | //  Link dynamique de fonction user
 | 
|---|
 | 36 |   int           LinkUserFuncs(string& fnameso, string& func1, string& func2, string& func3);
 | 
|---|
 | 37 | //                            string& func4, string& func5);   compil avec g++ 2.7.2
 | 
|---|
 | 38 |   NamedObjMgr* mObjMgr;
 | 
|---|
 | 39 |   PIStdImgApp* mImgApp;
 | 
|---|
 | 40 |   bool mOmg;
 | 
|---|
 | 41 | 
 | 
|---|
 | 42 | //  Pour stocker les variables definies par l'interpreteur
 | 
|---|
 | 43 | typedef map<string, string, less<string> > CmdVarList;
 | 
|---|
 | 44 | 
 | 
|---|
 | 45 |   CmdVarList mVars;    // Liste des variables 
 | 
|---|
 | 46 |   ofstream hist;       //  History file 
 | 
|---|
 | 47 |   bool trace;          // Trace flag
 | 
|---|
 | 48 |   bool timing;         // Display CPU Time
 | 
|---|
 | 49 |   Timer* gltimer;      // pour Display CPU Time
 | 
|---|
 | 50 | 
 | 
|---|
 | 51 | // g++ n'arrive pas a avaler ca (lignes trop longues)  on utilise donc des DlFunction  (Reza 20/08/98)
 | 
|---|
 | 52 | // typedef map<string, DlUserProcFunction, less<string> > UsFmap;
 | 
|---|
 | 53 | typedef map<string, DlFunction, less<string> > UsFmap;
 | 
|---|
 | 54 |   PDynLinkMgr* dynlink;
 | 
|---|
 | 55 |   UsFmap usfmap;
 | 
|---|
 | 56 | 
 | 
|---|
 | 57 | };
 | 
|---|
 | 58 | 
 | 
|---|
 | 59 | #endif
 | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.