11 static std::list
<std::pair
<int,eAutoInit
*> > *cl
;
12 friend class eAutoInit
;
17 static void setRunlevel(int rlev
);
18 static void add(int trl
, eAutoInit
*c
);
19 static void remove(int trl
, eAutoInit
*c
);
25 virtual void initNow()=0;
26 virtual void closeNow()=0;
31 eAutoInit(int rl
, char *description
): rl(rl
), description(description
)
35 const char *getDescription() const { return description
; };
38 template<class T1
, class T2
> class
39 eAutoInitP1
: protected eAutoInit
56 eAutoInitP1(const T2
&arg
, int runl
, char *description
): eAutoInit(runl
, description
), arg(arg
)
62 eInit::remove(rl
, this);
66 template<class T1
> class
67 eAutoInitP0
: protected eAutoInit
87 eAutoInitP0(int runl
, char *description
): eAutoInit(runl
, description
)
93 eInit::remove(rl
, this);