28 #ifndef CASA_BUCKETBASE_H
29 #define CASA_BUCKETBASE_H
32 #include <casacore/casa/aips.h>
33 #include <casacore/casa/IO/BucketFile.h>
virtual void doExtend(uInt nrBucket)=0
Do the actual extension of the file.
uInt itsNewNrOfBuckets
The new nr of buckets in the file (after extension).
uInt itsCurNrOfBuckets
The current nr of buckets in the file.
Bool itsHasWritten
Have data been written?
uInt itsBucketSize
The bucket size.
virtual void doResync()=0
Do the actual resync-ing.
virtual void initializeBuckets(uInt bucketNr)=0
Initialize the bucket buffer.
virtual void resync(uInt nrBucket)
Resynchronize the object (after another process updated the file).
void extend(uInt nrBucket)
Extend the file with the given number of buckets.
uInt nBucket() const
Get the current nr of buckets in the file.
BucketFile * itsFile
The file used.
Int64 itsStartOffset
The starting offsets of the buckets in the file.
BucketBase(BucketFile *file, Int64 startOffset, uInt bucketSize, uInt nrOfBuckets)
Create the bucket access for (part of) a file.
BucketBase(const BucketBase &)
Copy constructor is not possible.
Bool flush()
Flush the cached buckets.
void setWritten()
Set that data has been written.
virtual ~BucketBase()
Detach the file.
BucketBase & operator=(const BucketBase &)
Assignment is not possible.
virtual void doFlush()=0
Do the actual flushing.
this file contains all the compiler specific defines
long long Int64
Define the extra non-standard types used by Casacore (like proposed uSize, Size)
bool Bool
Define the standard types used by Casacore.