Official websites use .gov
A .gov website belongs to an official government organization in the United States.

Secure .gov websites use HTTPS
A lock ( ) or https:// means you’ve safely connected to the .gov website. Share sensitive information only on official, secure websites.

Isis 3 Programmer Reference
ImageIoHandler.cpp
1#include "ImageIoHandler.h"
2
3#include "Buffer.h"
4#include "CubeCachingAlgorithm.h"
5
6#include <QList>
7#include <QMutex>
8
9using namespace std;
10
11namespace Isis {
12 ImageIoHandler::ImageIoHandler(const QList<int> *virtualBandList) {
13 m_writeThreadMutex = NULL;
14 m_writeThreadMutex = new QMutex;
15 m_virtualBands = NULL;
16
17 setVirtualBands(virtualBandList);
18 }
19
20 ImageIoHandler::~ImageIoHandler() {
21 delete m_virtualBands;
22 m_virtualBands = NULL;
23
24 delete m_writeThreadMutex;
25 m_writeThreadMutex = NULL;
26 }
27
28 void ImageIoHandler::addCachingAlgorithm(CubeCachingAlgorithm *algorithm) {}
29
30 void ImageIoHandler::clearCache(bool blockForWriteCache) const {}
31
41 void ImageIoHandler::setVirtualBands(const QList<int> *virtualBandList) {
42 if(m_virtualBands) {
43 delete m_virtualBands;
44 m_virtualBands = NULL;
45 }
46
47 if(virtualBandList && !virtualBandList->empty())
48 m_virtualBands = new QList<int>(*virtualBandList);
49 }
50
61}
This is the parent of the caching algorithms.
QList< int > * m_virtualBands
Converts from virtual band to physical band.
void setVirtualBands(const QList< int > *virtualBandList)
This changes the virtual band list.
QMutex * m_writeThreadMutex
This enables us to block while the write thread is working.
QMutex * dataFileMutex()
Get the mutex that this IO handler is using around I/Os on the given data file.
This is free and unencumbered software released into the public domain.
This is free and unencumbered software released into the public domain.
Definition Apollo.h:16
Namespace for the standard library.