|
| TSMFile (const TiledStMan *stMan, uInt fileSequenceNr, const TSMOption &, const std::shared_ptr< MultiFileBase > &=std::shared_ptr< MultiFileBase >()) |
| Create a TSMFile object (with corresponding file).
|
|
| TSMFile (const String &fileName, Bool writable, const TSMOption &, const std::shared_ptr< MultiFileBase > &=std::shared_ptr< MultiFileBase >()) |
| Create a TSMFile object for the given existing file.
|
|
| TSMFile (const TiledStMan *stMan, AipsIO &ios, uInt seqnr, const TSMOption &, const std::shared_ptr< MultiFileBase > &=std::shared_ptr< MultiFileBase >()) |
| Read the object back.
|
|
| ~TSMFile () |
| The destructor closes the file.
|
|
| TSMFile (const TSMFile &)=delete |
| Forbid copy constructor.
|
|
TSMFile & | operator= (const TSMFile &)=delete |
| Forbid assignment.
|
|
void | putObject (AipsIO &ios) const |
| Write the object.
|
|
void | getObject (AipsIO &ios) |
| Get the object.
|
|
void | open () |
| Open the file if not open yet.
|
|
BucketFile * | bucketFile () |
| Return the BucketFile object (to be used in the BucketCache).
|
|
Int64 | length () const |
| Return the logical file length.
|
|
uInt | sequenceNumber () const |
| Return the file sequence number.
|
|
void | extend (Int64 increment) |
| Increment the logical file length.
|
|
File object for Tiled Storage Manager.
Intended use:
Internal
Review Status
- Reviewed By:
- UNKNOWN
- Date Reviewed:
- before2004/08/25
Prerequisite
Etymology
TSMFile represents a data file for the Tiled Storage Manager.
Synopsis
A TSMFile object represents a data file. Currently it is meant for the TiledStMan classes, but it can easily be turned into a more general storage manager file class.
Creation of a TSMFile object does not open the file. An explicit open call has to be given before the file can be used.
Underneath it uses a BucketFile to access the file. In this way the IO details are well encapsulated.
Motivation
Encapsulate the Tiled Storage Manager file details.
Definition at line 79 of file TSMFile.h.