00001 00002 #ifndef __image_creator_hpp__ 00003 #define __image_creator_hpp__ 00004 00005 #include <vector> 00006 00007 #include <crbn/basic/basic.h> 00008 00009 #include <crbn/image/image.hpp> 00010 00011 typedef struct _imod_entry imod_entry; 00012 00013 class iCreator 00014 { 00015 public: 00016 iCreator(); 00017 ~iCreator(); 00018 00019 char* last_module_called() { return _last_module_called; } 00020 00021 uint32 memory() { return _memory_used; } 00022 00023 void clear(); 00024 00025 Image* create( char* filename ); 00026 00027 private: 00028 uint32 _memory_used; 00029 char* _last_module_called; 00030 std::vector<imod_entry*> _mod_list; 00031 }; 00032 00033 #endif // __image_creator_hpp__