Horus Doc || C++ Reference || Class Overview   Pixels   Images   Detector   Geometry   Registry || Doxygen's quick Index  

HxImageDataRepository.h

00001 /*
00002  *  Copyright (c) 1996, University of Amsterdam, The Netherlands.
00003  *  All rights reserved.
00004  *
00005  *
00006  *  Author(s):
00007  *  Dennis Koelma (koelma@wins.uva.nl)
00008  *  Edo Poll (poll@wins.uva.nl)
00009  */
00010 
00011 #ifndef HxImageDataRepository_h
00012 #define HxImageDataRepository_h
00013 
00014 #include "HxString.h"
00015 #include <list>
00016 class HxImageData;
00017 
00018 
00019 class HxImageDataRepository {
00020 public:
00021 
00022                                     ~HxImageDataRepository();
00023     static HxImageDataRepository*   instance();
00024 
00025                                     // For use by HxImageData constructor only
00026     void                            insertImage(HxImageData* im);
00027                                     // For use by HxImageData destructor only
00028     void                            removeImage(HxImageData* im);
00029 
00030     HxImageData*                    findImage(int ident);
00031     HxImageData*                    findImage(HxString name);
00032 
00033     void                            printImageList();
00034 private:
00035                                     HxImageDataRepository();
00036     static HxImageDataRepository*   _inst;
00037 
00038     std::list<HxImageData*>         imageList;
00039 };
00040 
00041 #endif

Generated on Mon Jan 27 15:48:43 2003 for C++Reference by doxygen1.2.12 written by Dimitri van Heesch, © 1997-2001