00001 // -*- C++ -*- 00002 /*************************************************************************** 00003 * 00004 * The IPPL Framework 00005 * 00006 * 00007 * Visit http://people.web.psi.ch/adelmann/ for more details 00008 * 00009 ***************************************************************************/ 00010 00011 #ifndef ACLVIS_INTERP_CMD_H 00012 #define ACLVIS_INTERP_CMD_H 00013 00014 // include files 00015 #include "aclvis/InterpNamedObj.h" 00016 00017 00018 class InterpCmd : public InterpNamedObj { 00019 00020 public: 00021 // Constructor: nm represents the first identifying word of the command 00022 InterpCmd(const char *nm) : InterpNamedObj(nm) { } 00023 00024 // Destructor 00025 virtual ~InterpCmd() { } 00026 00027 // The function which is called when this command should 00028 // actually be run. Return the result as a string, and 00029 // set the final boolean to true if OK, false if error. 00030 virtual char *process(int argc, char *argv[], bool& status) = 0; 00031 }; 00032 00033 #endif // ACLVIS_INTERP_CMD_H 00034 00035 /*************************************************************************** 00036 * $RCSfile: InterpCmd.h,v $ $Author: adelmann $ 00037 * $Revision: 1.1.1.1 $ $Date: 2003/01/23 07:40:34 $ 00038 * IPPL_VERSION_ID: $Id: InterpCmd.h,v 1.1.1.1 2003/01/23 07:40:34 adelmann Exp $ 00039 ***************************************************************************/ 00040