Changeset 1262 in Sophya for trunk/SophyaPI/PIext/piacmd.h


Ignore:
Timestamp:
Oct 27, 2000, 6:30:28 PM (25 years ago)
Author:
ercodmgr
Message:

Reorganisation classe PIACmd (interpreteur de piapp) - Utilisation des services de NameObjMgr pour les variables de l'interpreteur - Reza 27/10/2000

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaPI/PIext/piacmd.h

    r1251 r1262  
    1212#include <string>
    1313#include <vector>
     14#include <list>
    1415#include <map>
    1516#include <functional>
     
    7879
    7980  virtual int           Interpret(string& line);
    80   virtual int           ExecuteCommandLine(string& line);
     81  virtual int           ParseLineExecute(string& line);
    8182  virtual int           ExecuteCommand(string& keyw, vector<string>& args);
    8283  virtual int           ExecFile(string& file, vector<string>& args);
     
    99100protected:
    100101  virtual int           CheckHelpGrp(string& grp);
     102  int           ExecuteCommandLine(string & keyw, vector<string> & args,
     103                                   string & toks);
     104
     105  int           SubstituteVars(string & s, string & s2); 
     106  bool          EvaluateTest(vector<string> & args);
    101107
    102108  NamedObjMgr* mObjMgr;
     
    128134//  Pour stocker les variables definies par l'interpreteur
    129135  typedef map<string, string, less<string> > CmdVarList;
    130   CmdVarList mVars;     // Liste des variables
     136  //  CmdVarList mVars;    Liste des variables
    131137  CmdVarList mAliases;  // Liste des alias
    132138
    133139  PIACmdBloc * curblk;  // Bloc de commande courant (foreach, ...)
    134140  int felevel;          // foreah level
     141  list<bool> testresult;    // Resultat des test if
     142  list<bool>::iterator tresit;      // Test courant
     143  bool bloctest;            // On est ds un bloc test
     144  bool bloccxx;             // On est ds un bloc code C++
     145  string codecxx;
    135146
    136147  ofstream hist;       //  History file
Note: See TracChangeset for help on using the changeset viewer.