diff options
Diffstat (limited to 'include/Main.h')
-rw-r--r-- | include/Main.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/include/Main.h b/include/Main.h new file mode 100644 index 0000000..4a81b3e --- /dev/null +++ b/include/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 |