CCAFFEINE
0.8.8
|
00001 #ifndef CmdContext_h_seen 00002 #define CmdContext_h_seen 00003 00004 00005 // $Id: CmdContext.h,v 1.8 2005/02/01 00:14:33 baallan Exp $ 00006 00007 // requires 00008 // #include "jc++/jc++.h" 00009 // #include "jc++/util/jc++util.h" 00010 00016 class CmdContext : public virtual JCPN(Object) { 00017 00018 private: 00019 00021 boolean debug_; 00022 00024 boolean verbose_; 00025 00026 public: 00027 00028 CDELETE CmdContext(); 00029 virtual ~CmdContext(){} 00030 00032 boolean setDebug(boolean d); 00033 00035 boolean debug(); 00036 00038 boolean setVerbose(boolean v); 00039 00041 boolean verbose(); 00042 00044 virtual void pn(char * s)=0; 00046 virtual void pn(char c)=0; 00047 00049 virtual void p(char * s)=0; 00051 virtual void p(char c)=0; 00052 00054 virtual char * prompt()=0; 00055 00061 virtual char * readLine(int & readError)=0; 00062 00072 virtual char * getClass(char * className)=0; 00073 00083 virtual char * getInstance(char * instanceName)=0; 00084 00085 00086 }; 00087 #endif // CmdContext_h_seen