28 #ifndef CASA_BUCKETMAPPED_H
29 #define CASA_BUCKETMAPPED_H
32 #include <casacore/casa/aips.h>
33 #include <casacore/casa/IO/BucketBase.h>
34 #include <casacore/casa/IO/MMapfdIO.h>
98 return const_cast<char*
>(
getBucket(bucketNr));
Bool itsHasWritten
Have data been written?
~BucketMapped()
Unmap the file.
virtual void initializeBuckets(uInt bucketNr)
Initialize the bucket buffer.
char * getrwBucket(uInt bucketNr)
Get a writable pointer to the given bucket in memory.
const char * getBucket(uInt bucketNr)
Get a readonly pointer to the given bucket in memory.
virtual void doExtend(uInt nrBucket)
Extend the file with the given number of buckets.
BucketMapped(const BucketMapped &)
Copy constructor is not possible.
virtual void doResync()
Do the actual resync-ing.
virtual void doFlush()
Flush the file.
BucketMapped(BucketFile *file, Int64 startOffset, uInt bucketSize, uInt nrOfBuckets)
Create the cache for (part of) a file.
BucketMapped & operator=(const BucketMapped &)
Assignment is not possible.
this file contains all the compiler specific defines
long long Int64
Define the extra non-standard types used by Casacore (like proposed uSize, Size)