From 75d6916ec69878af6649dd41ccdc41b5df807230 Mon Sep 17 00:00:00 2001 From: Pixel Date: Fri, 27 Sep 2002 20:36:49 +0000 Subject: Adding missing files --- includes/Main.h | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 includes/Main.h (limited to 'includes/Main.h') diff --git a/includes/Main.h b/includes/Main.h new file mode 100644 index 0000000..4a81b3e --- /dev/null +++ b/includes/Main.h @@ -0,0 +1,24 @@ +#ifndef __MAIN_H__ +#define __MAIN_H__ + +#include "Exceptions.h" + +class Main : public Base { + public: + Main(); + virtual ~Main(); + virtual int startup() throw (GeneralException) = 0; + protected: + void set_args(int, char **, char **); + int argc; + char ** argv; + char ** enve; + bool setted; + + friend int main(int, char **, char **); +}; + +#define CODE_BEGINS class Appli : public Main { +#define CODE_ENDS } * Application = new Appli(); + +#endif -- cgit v1.2.3