Changeset 2598 in Sophya for trunk/SophyaLib/SysTools/commander.h
- Timestamp:
- Aug 11, 2004, 3:10:25 PM (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaLib/SysTools/commander.h
r2518 r2598 27 27 // Classe definissant l'interface pour un interpreteur de commande 28 28 29 //! Interface definition for a generic command interpreter 29 /*! 30 \ingroup SysTools 31 \brief Interface definition for a generic command interpreter. 32 */ 30 33 class CmdInterpreter { 31 34 public: 32 35 virtual ~CmdInterpreter() {} ; 36 //! Returns the interpreter's name 33 37 virtual string Name()=0; 38 //! Method to be called in order to interpret a line or string. 34 39 virtual int Interpret(string& line)=0; 35 40 }; 36 41 37 42 38 //! Interface definition for command executor, to be used with SOPHYA::Commander 43 /*! 44 \ingroup SysTools 45 \brief Interface definition for command executor, to be used with Commander 46 47 A command is defined by a keyword and a number of argument 48 */ 39 49 40 50 class CmdExecutor { … … 159 169 160 170 // Pour enregistrer la liste de commandes et leurs executeurs et le help 171 //! Command executor registration - For Commander internal use 161 172 struct cmdex {int group; string us; CmdExecutor * cex; } ; 173 //! Help text registration - For Commander internal use 162 174 struct hgrpst {int gid; string desc; } ; // Identification+description d'un groupe de help 163 175 typedef map<string, hgrpst, less<string> > CmdHGroup; // Liste des groupes de commandes
Note:
See TracChangeset
for help on using the changeset viewer.