|
Isis Developer Reference
|
Go to the documentation of this file.
84 static Cube *
Open(
const QString &cubeFileName) {
89 return p_instance->OpenCube(cubeFileName);
105 if (numCubes > p_maxOpenFiles) {
106 p_currentLimit = p_maxOpenFiles;
108 p_currentLimit = numCubes;
120 static void CleanUp(
const QString &cubeFileName) {
121 p_instance->CleanCubes(cubeFileName);
135 void CleanCubes(
const QString &cubeFileName);
137 Cube *OpenCube(
const QString &cubeFileName);
~CubeManager()
This is the CubeManager destructor.
Definition: CubeManager.cpp:72
File name manipulation and expansion.
Definition: FileName.h:100
QMap< QString, Cube * > p_cubes
This keeps track of the open cubes.
Definition: CubeManager.h:145
static CubeManager * p_instance
There is always at least one instance of CubeManager around.
Definition: CubeManager.h:142
unsigned int p_maxOpenFiles
60% of the maximum number of open files allowed by system resources
Definition: CubeManager.h:154
static Cube * Open(const QString &cubeFileName)
This method calls the method OpenCube() on the static instance.
Definition: CubeManager.h:84
Cube * OpenCube(const QString &cubeFileName)
This method opens a cube.
Definition: CubeManager.cpp:95
static void CleanUp()
This method calls CleanCubes() on the static instance.
Definition: CubeManager.h:130
Class for quick re-accessing of cubes based on file name.
Definition: CubeManager.h:70
QString expanded() const
Returns a QString of the full file name including the file path, excluding the attributes.
Definition: FileName.cpp:196
static void CleanUp(const QString &cubeFileName)
This method calls CleanCubes(const QString &cubeFileName) on the static instance.
Definition: CubeManager.h:120
unsigned int p_currentLimit
The current limit regarding number of open files allowed.
Definition: CubeManager.h:151
#define _FILEINFO_
Macro for the filename and line number.
Definition: IException.h:24
QQueue< QString > p_opened
This keeps track of cubes that have been opened.
Definition: CubeManager.h:148
IO Handler for Isis Cubes.
Definition: Cube.h:167
Isis exception class.
Definition: IException.h:91
@ Programmer
This error is for when a programmer made an API call that was illegal.
Definition: IException.h:146
Namespace for the standard library.
This is free and unencumbered software released into the public domain.
Definition: CubeIoHandler.h:22
void SetNumOpenCubes(unsigned int numCubes)
This sets the maximum number of opened cubes for this instance of CubeManager.
Definition: CubeManager.h:102
Adds specific functionality to C++ strings.
Definition: IString.h:165
CubeManager()
This initializes a CubeManager object.
Definition: CubeManager.cpp:28
This is free and unencumbered software released into the public domain.
Definition: Apollo.h:16
QString ToQt() const
Retuns the object string as a QString.
Definition: IString.cpp:869
void CleanCubes()
This method removes all cubes from memory.
Definition: CubeManager.cpp:167