Changeset 2473 in Sophya for trunk/SophyaLib/SysTools/commander.h


Ignore:
Timestamp:
Dec 4, 2003, 12:50:37 PM (22 years ago)
Author:
ansari
Message:

Initialisation numero help-gid + declarations virtual pour les methodes de Commander - Reza 4 Dec 2003

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaLib/SysTools/commander.h

    r2466 r2473  
    8888
    8989  virtual int           Interpret(string& line);
    90   virtual int           ParseLineExecute(string& line, bool qw=true);
     90
    9191  virtual int           ExecuteCommand(string& keyw, vector<string>& args, string& toks);
    9292  virtual int           ExecFile(string& file, vector<string>& args);
     
    109109                            string& toks, bool uq=true);
    110110protected:
     111  virtual int   ParseLineExecute(string& line, bool qw=true);
     112
     113  virtual int   ExecuteCommandLine(string & keyw, vector<string> & args,
     114                                   string & toks);
     115
    111116  virtual bool  CheckHelpGrp(string& grp, int& gid, string& desc);
    112117  inline  bool  CheckHelpGrp(string& grp, int& gid)
    113118  { string desc=""; return CheckHelpGrp(grp, gid, desc); }
    114119
    115   int           ExecuteCommandLine(string & keyw, vector<string> & args,
    116                                    string & toks);
    117 
    118   int           SubstituteVars(string & s, string & s2); 
     120  virtual int   SubstituteVars(string & s, string & s2); 
    119121  int           EvaluateTest(vector<string> & args,
    120122                             string & line, bool & res);
    121123  int           EvalRPNExpr(vector<string> & args, string & line);
    122124
    123   bool          GetVar(string & vn, string & vv);
    124   string        GetVariable(string const & vn);
    125   bool          HasVariable(string const & vn);
    126   bool          SetVar(string const & vn, string const & vv);
    127   bool          DeleteVar(string const & vn);
    128   void          ListVars();
    129   string        GetTmpDir();
     125  virtual bool    GetVar(string & vn, string & vv);
     126  virtual string  GetVariable(string const & vn);
     127  virtual bool    HasVariable(string const & vn);
     128  virtual bool    SetVar(string const & vn, string const & vv);
     129  virtual bool    DeleteVar(string const & vn);
     130  virtual void    ListVars();
     131
     132  virtual string  GetTmpDir();
     133
     134  virtual void  SetCurrentPrompt(const char* pr);
    130135  inline void   SetCurrentPrompt(string const & pr) { SetCurrentPrompt(pr.c_str()); }
    131   virtual void  SetCurrentPrompt(const char* pr);
    132136
    133137  virtual void  ShowMessage(const char * msg, int att);
Note: See TracChangeset for help on using the changeset viewer.