summaryrefslogtreecommitdiff
path: root/include/Main.h
blob: 4a81b3ea0f696c7550033de84aaeef95f9a71e38 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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