MDAL
Public Member Functions | List of all members
MDAL::DatasetSelafin Class Reference
Inheritance diagram for MDAL::DatasetSelafin:
MDAL::Dataset2D MDAL::Dataset

Public Member Functions

 DatasetSelafin (DatasetGroup *parent, std::shared_ptr< SelafinFile > reader, size_t timeStepIndex)
 Contructs a dataset with a SelafinFile object and the index of the time step. More...
 
size_t scalarData (size_t indexStart, size_t count, double *buffer) override
 For DataOnVertices or DataOnFaces.
 
size_t vectorData (size_t indexStart, size_t count, double *buffer) override
 For DataOnVertices or DataOnFaces.
 
void setXVariableIndex (size_t index)
 Sets the position of the X array in the stream.
 
void setYVariableIndex (size_t index)
 Sets the position of the Y array in the stream.
 
- Public Member Functions inherited from MDAL::Dataset2D
 Dataset2D (DatasetGroup *parent)
 
size_t verticalLevelCountData (size_t indexStart, size_t count, int *buffer) override
 For DataOnVolumes.
 
size_t verticalLevelData (size_t indexStart, size_t count, double *buffer) override
 For DataOnVolumes.
 
size_t faceToVolumeData (size_t indexStart, size_t count, int *buffer) override
 For DataOnVolumes.
 
size_t scalarVolumesData (size_t indexStart, size_t count, double *buffer) override
 For DataOnVolumes.
 
size_t vectorVolumesData (size_t indexStart, size_t count, double *buffer) override
 For DataOnVolumes.
 
size_t volumesCount () const override
 
size_t maximumVerticalLevelsCount () const override
 
- Public Member Functions inherited from MDAL::Dataset
 Dataset (DatasetGroup *parent)
 
size_t valuesCount () const
 
virtual size_t activeData (size_t indexStart, size_t count, int *buffer)
 For drivers that supports it, see supportsActiveFlag()
 
Statistics statistics () const
 
void setStatistics (const Statistics &statistics)
 
bool isValid () const
 
DatasetGroupgroup () const
 
Meshmesh () const
 
double time (RelativeTimestamp::Unit unit) const
 
RelativeTimestamp timestamp () const
 
void setTime (double time, RelativeTimestamp::Unit unit=RelativeTimestamp::hours)
 
void setTime (const RelativeTimestamp &time)
 
bool supportsActiveFlag () const
 
void setSupportsActiveFlag (bool value)
 

Constructor & Destructor Documentation

◆ DatasetSelafin()

MDAL::DatasetSelafin::DatasetSelafin ( DatasetGroup parent,
std::shared_ptr< SelafinFile reader,
size_t  timeStepIndex 
)

Contructs a dataset with a SelafinFile object and the index of the time step.

Note
SelafinFile object is shared between different dataset, with the mesh and its iterators. As SerafinStreamReader is not thread safe, it has to be shared in the same thread.

Position of array(s) in the stream has to be set after construction (default = begin of the stream), see setXStreamPosition() and setYStreamPosition() (X for scalar dataset, X and Y for vector dataset)


The documentation for this class was generated from the following files: