10#include "IException.h"
84 static Cube *
Open(
const QString &cubeFileName) {
120 static void CleanUp(
const QString &cubeFileName) {
IO Handler for Isis Cubes.
Class for quick re-accessing of cubes based on file name.
static void CleanUp(const QString &cubeFileName)
This method calls CleanCubes(const QString &cubeFileName) on the static instance.
unsigned int p_maxOpenFiles
60% of the maximum number of open files allowed by system resources
static CubeManager * p_instance
There is always at least one instance of CubeManager around.
QMap< QString, Cube * > p_cubes
This keeps track of the open cubes.
Cube * OpenCube(const QString &cubeFileName)
This method opens a cube.
void CleanCubes()
This method removes all cubes from memory.
QQueue< QString > p_opened
This keeps track of cubes that have been opened.
CubeManager()
This initializes a CubeManager object.
void SetNumOpenCubes(unsigned int numCubes)
This sets the maximum number of opened cubes for this instance of CubeManager.
static void CleanUp()
This method calls CleanCubes() on the static instance.
unsigned int p_currentLimit
The current limit regarding number of open files allowed.
~CubeManager()
This is the CubeManager destructor.
static Cube * Open(const QString &cubeFileName)
This method calls the method OpenCube() on the static instance.
This is free and unencumbered software released into the public domain.
Namespace for the standard library.