44 #ifndef TEXTUREIMAGESTORAGE_HH 45 #define TEXTUREIMAGESTORAGE_HH 58 int addImageFile( QString _filename);
59 int addImage( QImage _image );
61 int getImageID(QString _filename);
63 QImage& getImage(
int _id,
bool* _ok);
65 QString error() {
return errorString_; };
67 void removeImage(
int _id);
69 inline const QMap<int,QImage>& imageMap()
const{
return imageMap_;}
70 inline const QMap< QString,QPair<int,QDateTime> >& filenameMap()
const {
return filenameMap_;}
71 inline const QMap<int,QString>& reverseFilenameMap()
const {
return reverseFilenameMap_;}
72 inline const QMap<int,unsigned int>& refCount()
const {
return refCount_;}
75 QMap<int,QImage> imageMap_;
76 QMap< QString,QPair<int,QDateTime> > filenameMap_;
77 QMap<int,QString> reverseFilenameMap_;
78 QMap<int,unsigned int> refCount_;
90 #endif //TEXTUREIMAGESTORAGE_HH