diff options
Diffstat (limited to 'includes')
-rw-r--r-- | includes/Main.h | 24 | ||||
-rw-r--r-- | includes/cdabstract.h | 8 |
2 files changed, 32 insertions, 0 deletions
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 diff --git a/includes/cdabstract.h b/includes/cdabstract.h new file mode 100644 index 0000000..66aa909 --- /dev/null +++ b/includes/cdabstract.h @@ -0,0 +1,8 @@ +#ifndef __CD_ABSTRACT_H__ +#define __CD_ABSTRACT_H__ + +#include "Handle.h" + +Handle * open_iso(const String &); + +#endif |