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_ACLVIS_H 00012 #define ACLVIS_INTERP_CMD_ACLVIS_H 00013 00014 // include files 00015 #include "aclvis/InterpCmd.h" 00016 00017 // forward reference 00018 class VizTool; 00019 00020 00022 // a base class for all ACLVIS-specific interpreted commands 00023 class InterpCmdACLVIS : public InterpCmd { 00024 00025 public: 00026 // Constructor: need the VizTool and the first word 00027 InterpCmdACLVIS(VizTool *v, const char *nm) : viztool(v), InterpCmd(nm) { } 00028 00029 // Destructor 00030 virtual ~InterpCmdACLVIS() { } 00031 00032 protected: 00033 // our VizTool 00034 VizTool *viztool; 00035 }; 00036 00037 00039 // the command processor for the viztool command 00040 class InterpCmdTool : public InterpCmdACLVIS { 00041 00042 public: 00043 // Constructor: need the VizTool 00044 InterpCmdTool(VizTool *v) : InterpCmdACLVIS(v, "viz") { } 00045 00046 // Destructor 00047 virtual ~InterpCmdTool() { } 00048 00049 // The function which is called when this command should 00050 // actually be run. Return the result as a string, and 00051 // set the final boolean to true if OK, false if error. 00052 virtual char *process(int argc, char *argv[], bool& status); 00053 }; 00054 00055 #endif // ACLVIS_INTERP_CMD_ACLVIS_H 00056 00057 /*************************************************************************** 00058 * $RCSfile: InterpCmdACLVIS.h,v $ $Author: adelmann $ 00059 * $Revision: 1.1.1.1 $ $Date: 2003/01/23 07:40:34 $ 00060 * IPPL_VERSION_ID: $Id: InterpCmdACLVIS.h,v 1.1.1.1 2003/01/23 07:40:34 adelmann Exp $ 00061 ***************************************************************************/ 00062