|
casacore
|
#include <TSMOption.h>
Public Types | |
| enum | Option { Cache , Buffer , MMap , Default , Aipsrc } |
| Define the possible options how the TiledStMan accesses its data. More... | |
Public Member Functions | |
| TSMOption (Option option=Aipsrc, Int bufferSize=-2, Int maxCacheSizeMB=-2) | |
| Create an option object. | |
| void | fillOption (Bool newFile) |
| Fill the option in case Aipsrc or Default was given. | |
| Option | option () const |
| Get the option. | |
| Int | bufferSize () const |
| Get the buffer size. | |
| Int | maxCacheSizeMB () const |
| Get the maximum cache size (in MibiByte). | |
Private Attributes | |
| Option | itsOption |
| Int | itsBufferSize |
| Int | itsMaxCacheSize |
Options for the Tiled Storage Manager Access
Public interface
This class can be used to define how the Tiled Storage Manager accesses its data. There are three ways:
The constructor of the class can be used to define the options or to read options from the aipsrc file.
The aipsrc variables are:
Definition at line 114 of file TSMOption.h.
Define the possible options how the TiledStMan accesses its data.
Definition at line 118 of file TSMOption.h.
| casacore::TSMOption::TSMOption | ( | Option | option = Aipsrc, |
| Int | bufferSize = -2, | ||
| Int | maxCacheSizeMB = -2 ) |
Create an option object.
The parameter values are described in the synopsis. A size value -2 means reading that size from the aipsrc file. The buffer size has to be given in bytes. The maximum cache size has to be given in MibiBytes (1024*1024 bytes).
References Aipsrc, bufferSize(), maxCacheSizeMB(), and option().
|
inline |
Get the buffer size.
Definition at line 148 of file TSMOption.h.
References itsBufferSize.
Referenced by TSMOption().
| void casacore::TSMOption::fillOption | ( | Bool | newFile | ) |
Fill the option in case Aipsrc or Default was given.
It is done as explained in the synopsis.
|
inline |
Get the maximum cache size (in MibiByte).
-1 means undefined.
Definition at line 152 of file TSMOption.h.
References itsMaxCacheSize.
Referenced by TSMOption().
|
inline |
Get the option.
Definition at line 144 of file TSMOption.h.
References itsOption.
Referenced by TSMOption().
|
private |
Definition at line 157 of file TSMOption.h.
Referenced by bufferSize().
|
private |
Definition at line 158 of file TSMOption.h.
Referenced by maxCacheSizeMB().
|
private |
Definition at line 156 of file TSMOption.h.
Referenced by option().