78 static Cube *
Open(
const QString &cubeFileName) {
83 return p_instance->OpenCube(cubeFileName);
99 if (numCubes > p_maxOpenFiles) {
100 p_currentLimit = p_maxOpenFiles;
102 p_currentLimit = numCubes;
114 static void CleanUp(
const QString &cubeFileName) {
115 p_instance->CleanCubes(cubeFileName);
129 void CleanCubes(
const QString &cubeFileName);
131 Cube *OpenCube(
const QString &cubeFileName);
QQueue< QString > p_opened
This keeps track of cubes that have been opened.
static void CleanUp(const QString &cubeFileName)
This method calls CleanCubes(const QString &cubeFileName) on the static instance. ...
unsigned int p_currentLimit
The current limit regarding number of open files allowed.
void SetNumOpenCubes(unsigned int numCubes)
This sets the maximum number of opened cubes for this instance of CubeManager.
QMap< QString, Cube * > p_cubes
This keeps track of the open cubes.
static Cube * Open(const QString &cubeFileName)
This method calls the method OpenCube() on the static instance.
Class for quick re-accessing of cubes based on file name.
static CubeManager * p_instance
There is always at least one instance of CubeManager around.
unsigned int p_maxOpenFiles
60% of the maximum number of open files allowed by system resources
static void CleanUp()
This method calls CleanCubes() on the static instance.
IO Handler for Isis Cubes.