00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #ifndef __CEL_CELSTART_CELSTART_H__
00020 #define __CEL_CELSTART_CELSTART_H__
00021
00022 #include <cssysdef.h>
00023 #include <csutil/dirtyaccessarray.h>
00024 #include <csutil/mempool.h>
00025 #include "celtool/celtoolextern.h"
00026
00027 #ifdef CEL_CELSTARTCORE_LIB
00028 #define CEL_CELSTARTCORE_EXPORT CEL_EXPORT_SYM
00029 #else
00030 #define CEL_CELSTARTCORE_EXPORT CEL_IMPORT_SYM
00031 #endif
00032
00033 namespace CEL
00034 {
00038 CEL_CELSTARTCORE_EXPORT int CelStartMain (int argc, const char* const argv[]);
00039
00052 class CEL_CELSTARTCORE_EXPORT CelStartWrapper
00053 {
00054 csMemoryPool extraArgsPool;
00055 csDirtyAccessArray<const char*> args;
00056 size_t userArgsFirst;
00057 size_t userArgsCount;
00058 public:
00059 CelStartWrapper (int argc, const char* const argv[]);
00060
00069 void AddArgumentBeforeUserArgs (const char* arg);
00071 void AddArgumentAfterUserArgs (const char* arg);
00072
00074 int Main ();
00075 };
00076 }
00077
00078 #endif // __CEL_CELSTART_CELSTART_H__