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

Last change on this file since 2474 was 2474, checked in by ansari, 22 years ago

Petites modifs ds piacmd.cc .h - Reza 4/12/2003

File size: 2.4 KB
RevLine 
[165]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
[293]9#include "machdefs.h"
[2463]10#include "commander.h"
[165]11#include <string>
[293]12#include <vector>
[165]13
14#include "dlftypes.h"
15
[293]16// Forward declaration of some classes ...
[165]17class NamedObjMgr;
18class PIStdImgApp;
[1251]19
20class PIAHelpWind; // Fenetre d'aide en ligne
21class CxxExecWind; // Fenetre pour CxxExecutor
22class CxxOptionWind; // Option de CxxExecutor
23
[293]24// ---------------------------------------------------------------------
25// Classe Interpreteur de commande, gestionnaire de module chargeable,
26// et de fonctions dynamiquement linke pour PIStdImgApp
27// Permet de gerer plusieurs Interpreter differents
28// ---------------------------------------------------------------------
[165]29
[330]30
[2463]31class PIACmd : public Commander {
[165]32public:
[2463]33 // static PIACmd* GetInterpreter();
[165]34
[293]35 PIACmd(NamedObjMgr* omg, PIStdImgApp* app);
36 virtual ~PIACmd();
37
38
[2463]39 void ShowHelpWindow();
40 void ShowCxxOptionWindow();
41 void ShowCxxExecWindow();
[293]42
[2463]43 // inline CmdInterpreter* CurrentInterpreter() { return(curcmdi); }
[293]44
[2465]45 inline CmdExecutor* BaseExecutor() { return(basexec); }
46 inline CmdExecutor* ContExecutor() { return(cntexec); } //_OP_
47 inline PIStdImgApp* GetImgApp() { return(mImgApp); }
[293]48
[330]49// Pour utilisation par PIAHelpWind uniquement
50 virtual void UpdateHelpList(PIAHelpWind* hw, int gid);
51
[293]52protected:
[2474]53 virtual int ExecuteCommandLine(string & kw, vector<string> & tokens,
54 string & toks);
55
[2465]56 virtual bool CheckHelpGrp(string& grp, int& gid, string& desc);
57 virtual void InitializeHelpWindowMenu();
[330]58
[2463]59 virtual void SetCurrentPrompt(const char* pr);
60 virtual void ShowMessage(const char * msg, int att);
[2236]61
[165]62 NamedObjMgr* mObjMgr;
63 PIStdImgApp* mImgApp;
64
[1224]65 CmdExecutor* basexec; // basic command executor
66 CmdExecutor* fitexec; // Fit command executor
67 CmdExecutor* pawexec; // paw-like command executor
68 CmdExecutor* cxxexec; // on-line c++ compile/execution command executor
[293]69
[1828]70 CmdExecutor *cntexec; // contour executor _OP_
[1920]71 CmdExecutor *flwexec; // flow chart executor _OP_
[1828]72
[293]73// Fenetre d'aide interactive
74 PIAHelpWind* helpwin;
[2465]75 bool helpwin_initdone;
76// Fenetres d'execution interactive de C++ , options correspondantes
[1251]77 CxxExecWind* cxxexwin;
78 CxxOptionWind* cxxoptwin;
[165]79};
80
[293]81
82
[165]83#endif
Note: See TracBrowser for help on using the repository browser.