00001 #ifndef tcsMAIN_HANDLER_H
00002 #define tcsMAIN_HANDLER_H
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #ifndef __cplusplus
00020 #error This is a C++ include file and cannot be used from plain C
00021 #endif
00022
00023 #include "tcs.h"
00024 #include "tcsBASE.h"
00025
00026 #include "eccsErr.h"
00027
00028 template<class T>
00029 class tcsMAIN_HANDLER : public eccsERROR_CLASS, public tcsBASE
00030 {
00031 public:
00032 tcsMAIN_HANDLER();
00033 virtual ~tcsMAIN_HANDLER();
00034
00035 ccsCOMPL_STAT Init(int argCount, char *arg[]);
00036 ccsCOMPL_STAT RunMainLoop(T *obj, ccsCOMPL_STAT(T::* recover)());
00037
00038 protected:
00039 virtual ccsCOMPL_STAT EvaluateArgs(int argCount, char *arg[],
00040 ccsPROCNAME pname);
00041 };
00042
00043 #include "tcsMAIN_HANDLER.icc"
00044
00045 #endif