Arcane  4.1.12.0
User documentation
Loading...
Searching...
No Matches
Arcane::IDataReader2 Class Referenceabstract

Interface for reading data of a variable (Version 2). More...

#include <arcane/core/IDataReader2.h>

Public Member Functions

virtual ~IDataReader2 ()
 Releases resources.
virtual void fillMetaData (ByteArray &bytes)=0
 Fills bytes with the metadata content.
virtual void beginRead (const DataReaderInfo &infos)=0
 Notifies the start of data reading.
virtual void read (const VariableDataReadInfo &infos)=0
 Reads the data specified by infos.
virtual void endRead ()=0
 Notifies the end of data reading.

Detailed Description

Interface for reading data of a variable (Version 2).

This interface allows reading data of a variable from a checkpoint file.

This interface is generally used by IVariableMng::readCheckpoint(). The order of operations is as follows:

IDataReader2 reader = ...;
DataReaderInfo read_infos = ...
reader->fillMetaData(...);
reader->beginRead(read_infos);
for( const VariableDataReadInfo& i : variables )
reader->read(i);
reader->endRead();
Data reading information.
Interface for reading data of a variable (Version 2).
virtual void read(const VariableDataReadInfo &infos)=0
Reads the data specified by infos.
virtual void beginRead(const DataReaderInfo &infos)=0
Notifies the start of data reading.
virtual void endRead()=0
Notifies the end of data reading.
Data reading information for a variable.

Definition at line 95 of file IDataReader2.h.

Constructor & Destructor Documentation

◆ ~IDataReader2()

virtual Arcane::IDataReader2::~IDataReader2 ( )
inlinevirtual

Releases resources.

Definition at line 100 of file IDataReader2.h.


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