Clarisse 5.0 SP8 SDK  5.0.5.8.0
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
clarisse_engine.h
1 #ifndef __ClarisseEngine_H__
2 #define __ClarisseEngine_H__
3 
4 class AppObject;
5 class CoreString;
6 template <class T> class CoreBasicArray;
7 
8 typedef void (*ClarisseEngineCallback)(AppObject& application, void *data);
9 
10 class ClarisseEngineImpl;
11 
17 public:
18 
21  enum ExecMode {
24  };
25 
26  ClarisseEngineHandler(ClarisseEngineImpl *impl) : m_impl(impl) {}
27 
38  bool execute(const ExecMode& mode, ClarisseEngineCallback cbk, void *data = 0);
40  bool is_running() const;
42  void quit();
43 
44  ClarisseEngineImpl *get_impl() const { return m_impl; };
45 
46 private:
47  ClarisseEngineImpl *m_impl;
48 };
49 
59 public:
60 
62  static bool is_created();
63 
70  static ClarisseEngineHandler *create(int argc, char **argv, const char *module_path);
71 
78  static ClarisseEngineHandler *create(int argc, char **argv, const CoreBasicArray<CoreString>& module_paths);
79 
84 };
85 
86 #endif