ConApp.h

Go to the documentation of this file.
00001 /*
00002  *      CoreApp.h - Base application class that contains the minimal functality to
00003  *                  support an instance of the pentagram engine
00004  *
00005  *  Copyright (C) 2002-2005 The Pentagram Team
00006  *
00007  *  This program is free software; you can redistribute it and/or modify
00008  *  it under the terms of the GNU General Public License as published by
00009  *  the Free Software Foundation; either version 2 of the License, or
00010  *  (at your option) any later version.
00011  *
00012  *  This program is distributed in the hope that it will be useful,
00013  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00014  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00015  *  GNU General Public License for more details.
00016  *
00017  *  You should have received a copy of the GNU General Public License
00018  *  along with this program; if not, write to the Free Software
00019  *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
00020  */
00021 
00022 #ifndef CONAPP_H
00023 #define CONAPP_H
00024 
00025 #include "CoreApp.h"
00026 
00027 class Kernel;
00028 
00029 class ConApp : public CoreApp
00030 {
00031 public:
00032         ConApp(int argc, const char* const* argv);
00033         virtual ~ConApp();
00034 
00035         static ConApp* get_instance()
00036                 { return p_dynamic_cast<ConApp*>(application); }
00037 
00038         void startup();
00039 
00040         virtual void helpMe();
00041         
00042         virtual void run();
00043         virtual void paint() {}; // should be removed from CoreApp
00044 
00045 protected:
00046         virtual void DeclareArgs();
00047 
00048         Kernel* kernel;
00049 
00050 private:
00051         // various temporary state flags, to be moved somewhere more appropriate in time.
00052         bool weAreDisasming;
00053         bool weAreCompiling;
00054 };
00055 
00056 #endif
00057 

Generated on Fri Jul 27 22:27:11 2007 for pentagram by  doxygen 1.4.7