Developer Documentation
ImageStore Class Reference

Public Member Functions

int addImageFile (QString _filename)
 
int addImage (QImage _image)
 
int getImageID (QString _filename)
 
QImage & getImage (int _id, bool *_ok)
 
QString error ()
 
void removeImage (int _id)
 
const QMap< int, QImage > & imageMap () const
 
const QMap< QString, QPair< int, QDateTime > > & filenameMap () const
 
const QMap< int, QString > & reverseFilenameMap () const
 
const QMap< int, unsigned int > & refCount () const
 

Private Attributes

QMap< int, QImage > imageMap_
 
QMap< QString, QPair< int, QDateTime > > filenameMap_
 
QMap< int, QString > reverseFilenameMap_
 
QMap< int, unsigned int > refCount_
 
QString errorString_
 
QImage dummy_
 
int nextId_
 

Detailed Description

Definition at line 54 of file ImageStorage.hh.

Constructor & Destructor Documentation

◆ ImageStore()

ImageStore::ImageStore ( )

Definition at line 56 of file ImageStorage.cc.

Member Function Documentation

◆ addImage()

int ImageStore::addImage ( QImage  _image)

Definition at line 136 of file ImageStorage.cc.

◆ addImageFile()

int ImageStore::addImageFile ( QString  _filename)

Definition at line 63 of file ImageStorage.cc.

◆ error()

QString ImageStore::error ( )
inline

Definition at line 65 of file ImageStorage.hh.

◆ filenameMap()

const QMap< QString, QPair< int, QDateTime > > & ImageStore::filenameMap ( ) const
inline

Definition at line 70 of file ImageStorage.hh.

◆ getImage()

QImage & ImageStore::getImage ( int  _id,
bool *  _ok 
)

Definition at line 171 of file ImageStorage.cc.

◆ getImageID()

int ImageStore::getImageID ( QString  _filename)

Definition at line 155 of file ImageStorage.cc.

◆ imageMap()

const QMap< int, QImage > & ImageStore::imageMap ( ) const
inline

Definition at line 69 of file ImageStorage.hh.

◆ refCount()

const QMap< int, unsigned int > & ImageStore::refCount ( ) const
inline

Definition at line 72 of file ImageStorage.hh.

◆ removeImage()

void ImageStore::removeImage ( int  _id)

Definition at line 187 of file ImageStorage.cc.

◆ reverseFilenameMap()

const QMap< int, QString > & ImageStore::reverseFilenameMap ( ) const
inline

Definition at line 71 of file ImageStorage.hh.

Member Data Documentation

◆ dummy_

QImage ImageStore::dummy_
private

Definition at line 82 of file ImageStorage.hh.

◆ errorString_

QString ImageStore::errorString_
private

Definition at line 80 of file ImageStorage.hh.

◆ filenameMap_

QMap< QString,QPair<int,QDateTime> > ImageStore::filenameMap_
private

Definition at line 76 of file ImageStorage.hh.

◆ imageMap_

QMap<int,QImage> ImageStore::imageMap_
private

Definition at line 75 of file ImageStorage.hh.

◆ nextId_

int ImageStore::nextId_
private

Definition at line 83 of file ImageStorage.hh.

◆ refCount_

QMap<int,unsigned int> ImageStore::refCount_
private

Definition at line 78 of file ImageStorage.hh.

◆ reverseFilenameMap_

QMap<int,QString> ImageStore::reverseFilenameMap_
private

Definition at line 77 of file ImageStorage.hh.


The documentation for this class was generated from the following files: