mimmo::VTUAbsorbStreamer Class Referenceabstract

Abstract class for custom reader/absorber of *.vtu mesh external files. More...

#include <VTUGridReader.hpp>

Inheritance diagram for mimmo::VTUAbsorbStreamer:
Collaboration diagram for mimmo::VTUAbsorbStreamer:

Public Member Functions

 VTUAbsorbStreamer ()
 
 VTUAbsorbStreamer (const VTUAbsorbStreamer &)=default
 
virtual ~VTUAbsorbStreamer ()
 
virtual void absorbData (std::fstream &stream, const std::string &name, bitpit::VTKFormat format, uint64_t entries, uint8_t components, bitpit::VTKDataType datatype)
 
virtual void decodeRawData (bitpit::PatchKernel &)=0
 

Detailed Description

Abstract class for custom reader/absorber of *.vtu mesh external files.

Reader/absorber is focused to mesh data only. Abstract class need to provide:

  • A custom implementation of absorbData method to read the data from file (actually void).
  • A method to decode raw data acquired by the streamer, in order to fill a custom mesh container of type bitpit::PatchKernel.

Definition at line 43 of file VTUGridReader.hpp.

Constructor & Destructor Documentation

◆ VTUAbsorbStreamer() [1/2]

mimmo::VTUAbsorbStreamer::VTUAbsorbStreamer ( )

Base Constructor

Definition at line 32 of file VTUGridReader.cpp.

◆ ~VTUAbsorbStreamer()

mimmo::VTUAbsorbStreamer::~VTUAbsorbStreamer ( )
virtual

Base Destructor

Definition at line 37 of file VTUGridReader.cpp.

◆ VTUAbsorbStreamer() [2/2]

mimmo::VTUAbsorbStreamer::VTUAbsorbStreamer ( const VTUAbsorbStreamer )
default

Copy Constructor

Member Function Documentation

◆ absorbData()

void mimmo::VTUAbsorbStreamer::absorbData ( std::fstream &  stream,
const std::string &  name,
bitpit::VTKFormat  format,
uint64_t  entries,
uint8_t  components,
bitpit::VTKDataType  datatype 
)
virtual

Absorber of VTU mesh data. Reimplemented from bitpit::VTKBaseStreamer class

Parameters
[in]streamstream to read from
[in]namename of the geometry field
[in]formatASCII or APPENDED
[in]entriesnumber of entries for data container
[in]componentsnumber of components of current data container
[in]datatypedata format for binary casting

Reimplemented in mimmo::VTUGridStreamer.

Definition at line 48 of file VTUGridReader.cpp.

◆ decodeRawData()

virtual void mimmo::VTUAbsorbStreamer::decodeRawData ( bitpit::PatchKernel &  )
pure virtual

Decode read raw data and fill a bitpit::PatchKernel structure with them

Implemented in mimmo::VTUGridStreamer.


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