libcrbn/image/icontext.hpp

00001 
00002 #ifndef __image_context_hpp__
00003 #define __image_context_hpp__
00004 
00005 #include <crbn/basic/basic.h>
00006 #include <crbn/basic/paramlist.hpp>
00007 
00008 #include <crbn/image/image.hpp>
00009 
00010 #include "icache.hpp"
00011 #include "icreator.hpp"
00012 
00013 class ImageContext
00014 {
00015  public:
00016 
00017   // ctor.
00018   ImageContext();
00019 
00020   // dtor.
00021   ~ImageContext();
00022 
00023   // returns the memory used by this object.
00024   uint32 memory();
00025 
00026   // load a new image.
00027   uint32 create( char* filename );
00028 
00029   // get the matter indexed by 'index'
00030   Image* get( uint32 index );
00031 
00032  private:
00033   iCache icache;
00034   iCreator icreator;
00035 };
00036 
00037 #endif // __image_context_hpp__

Generated on Tue Nov 14 15:40:08 2006 for libcrbn by  doxygen 1.5.0