Options defining how table files are organized. More...
#include <StorageOption.h>
Public Types | |
enum | Option { MultiFile, MultiHDF5, SepFile, Default, Aipsrc } |
Define the possible options how table files are organized. More... | |
Public Member Functions | |
StorageOption (Option option=Aipsrc, Int blockSize=-2) | |
Create an option object. | |
void | fillOption () |
Fill the option in case Aipsrc or Default was given. | |
Option | option () const |
Get the option. | |
void | setOption (Option option) |
Set the option. | |
uInt | blockSize () const |
Get the block size. | |
void | setBlockSize (Int blockSize) |
Set the block size. | |
Private Attributes | |
Option | itsOption |
Int | itsBlockSize |
Options defining how table files are organized.
Public interface
This class can be used to define how the files of a table are organized. There are two ways:
It is possible to specify the storage type and block size using aipsrc. The aipsrc variables are:
tables.storage.type
. The (case-insensitive) value can be 'multifile' or 'multihdf5'. Another value means the old way (separate files). tables.storage.blocksize
gives the default blocksize to be used for the multifile and multihdf5 option. Definition at line 71 of file StorageOption.h.
Define the possible options how table files are organized.
MultiFile | |
MultiHDF5 | |
SepFile |
Let storage managers use separate files. |
Default |
Use default (currently MultiFile). |
Aipsrc |
Use as defined in the aipsrc file. |
Definition at line 75 of file StorageOption.h.
Create an option object.
The parameter values are described in the synopsis. A size value -2 means reading that size from the aipsrc file.
uInt casacore::StorageOption::blockSize | ( | ) | const [inline] |
void casacore::StorageOption::fillOption | ( | ) |
Fill the option in case Aipsrc or Default was given.
It is done as explained in the synopsis.
Option casacore::StorageOption::option | ( | ) | const [inline] |
void casacore::StorageOption::setBlockSize | ( | Int | blockSize | ) | [inline] |
void casacore::StorageOption::setOption | ( | Option | option | ) | [inline] |
Int casacore::StorageOption::itsBlockSize [private] |
Definition at line 115 of file StorageOption.h.
Referenced by blockSize(), and setBlockSize().
Option casacore::StorageOption::itsOption [private] |
Definition at line 114 of file StorageOption.h.
Referenced by option(), and setOption().