source: Sophya/trunk/SophyaPI/PIext/piacmd.h@ 165

Last change on this file since 165 was 165, checked in by ercodmgr, 27 years ago

Creation du module PIext en regroupant des fichiers de Drawer/Wdg pour
Objets ds PEIDA/Outils++, Images++, ... et des classes de ProgPI,
lie a piapp (PIStdImgApp, NamedObjMgr, ...) Reza 18/12/98

File size: 1.5 KB
Line 
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
9#include "defs.h"
10
11#include <fstream.h>
12#include <string>
13#include <map>
14#if defined(__KCC__)
15using std::string ;
16#include <map.h>
17#endif
18
19#include "ctimer.h"
20#include "dlftypes.h"
21
22class NamedObjMgr;
23class PIStdImgApp;
24
25
26class PIACmd {
27public:
28 PIACmd(NamedObjMgr* omg=NULL, PIStdImgApp* app=NULL);
29 ~PIACmd();
30 int Exec(string& file);
31 int Do(string& line);
32
33// Link dynamique de fonction user
34 int LinkUserFuncs(string& fnameso, string& func1, string& func2, string& func3,
35 string& func4, string& func5);
36 NamedObjMgr* mObjMgr;
37 PIStdImgApp* mImgApp;
38 bool mOmg;
39
40// Pour stocker les variables definies par l'interpreteur
41typedef map<string, string, less<string> > CmdVarList;
42
43 CmdVarList mVars; // Liste des variables
44 ofstream hist; // History file
45 bool trace; // Trace flag
46 bool timing; // Display CPU Time
47 Timer* gltimer; // pour Display CPU Time
48
49// g++ n'arrive pas a avaler ca (lignes trop longues) on utilise donc des DlFunction (Reza 20/08/98)
50// typedef map<string, DlUserProcFunction, less<string> > UsFmap;
51typedef map<string, DlFunction, less<string> > UsFmap;
52 void *dlhandle; // Pour le link dynamique
53 UsFmap usfmap;
54 string TmpDir; // Repertoire pour les compilations / link dynamique
55
56
57};
58
59#endif
Note: See TracBrowser for help on using the repository browser.