casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Public Attributes | List of all members
casacore::MultiFileInfo Struct Reference

Helper class for MultiFileBase containing info per internal file. More...

#include <MultiFileBase.h>

Public Member Functions

 MultiFileInfo (Int64 bufSize=0, Bool useODirect=False)
 Initialize the object and create the buffer with the proper size. More...
 
void allocBuffer (Int64 bufSize, Bool useODirect=False)
 Allocate the buffer. More...
 

Public Attributes

vector< Int64blockNrs
 
Int64 curBlock
 
Int64 fsize
 
String name
 
Bool dirty
 
std::shared_ptr< MultiFileBufferbuffer
 
CountedPtr< HDF5Groupgroup
 
CountedPtr< HDF5DataSetdataSet
 

Detailed Description

Helper class for MultiFileBase containing info per internal file.

Synopsis

This struct defines the various fields describing a logical file in a class derived from MultiFileBase (such as MultiFile or MultiHDF5).

Intended use:

Internal

Definition at line 75 of file MultiFileBase.h.

Constructor & Destructor Documentation

casacore::MultiFileInfo::MultiFileInfo ( Int64  bufSize = 0,
Bool  useODirect = False 
)
explicit

Initialize the object and create the buffer with the proper size.

If align>1 (for use of O_DIRECT), the buffer is properly aligned and it is ensured that its size is a multiple of the alignment.

Member Function Documentation

void casacore::MultiFileInfo::allocBuffer ( Int64  bufSize,
Bool  useODirect = False 
)
inline

Allocate the buffer.

Definition at line 81 of file MultiFileBase.h.

References buffer.

Member Data Documentation

vector<Int64> casacore::MultiFileInfo::blockNrs

Definition at line 84 of file MultiFileBase.h.

std::shared_ptr<MultiFileBuffer> casacore::MultiFileInfo::buffer

Definition at line 89 of file MultiFileBase.h.

Referenced by allocBuffer(), and casacore::MultiFileBase::writeDirty().

Int64 casacore::MultiFileInfo::curBlock

Definition at line 85 of file MultiFileBase.h.

Referenced by casacore::MultiFileBase::writeDirty().

CountedPtr<HDF5DataSet> casacore::MultiFileInfo::dataSet

Definition at line 91 of file MultiFileBase.h.

Bool casacore::MultiFileInfo::dirty

Definition at line 88 of file MultiFileBase.h.

Referenced by casacore::MultiFileBase::writeDirty().

Int64 casacore::MultiFileInfo::fsize

Definition at line 86 of file MultiFileBase.h.

CountedPtr<HDF5Group> casacore::MultiFileInfo::group

Definition at line 90 of file MultiFileBase.h.

String casacore::MultiFileInfo::name

Definition at line 87 of file MultiFileBase.h.


The documentation for this struct was generated from the following file: