mimmo::VTUFlushStreamerASCII Class Reference

Abstract class for custom ASCII writer/flusher of *.vtu mesh external files. More...

#include <VTUGridWriterASCII.hpp>

Inheritance diagram for mimmo::VTUFlushStreamerASCII:
Collaboration diagram for mimmo::VTUFlushStreamerASCII:

Public Member Functions

 VTUFlushStreamerASCII ()
 
 VTUFlushStreamerASCII (const VTUFlushStreamerASCII &)=default
 
virtual ~VTUFlushStreamerASCII ()
 
virtual void flushData (std::fstream &stream, const std::string &name, bitpit::VTKFormat format=bitpit::VTKFormat::ASCII)
 
void setTargetPatch (bitpit::PatchKernel &patch, bitpit::PiercedStorage< long, long > &vtkVertexMap)
 

Detailed Description

Abstract class for custom ASCII writer/flusher of *.vtu mesh external files.

Writer/flusher is focused to mesh data only retained by PatchKernel classes. Abstract class need to provide:

  • A custom implementation of flushData method to write bitpit::PatchKernel data on target file.

Definition at line 41 of file VTUGridWriterASCII.hpp.

Constructor & Destructor Documentation

◆ VTUFlushStreamerASCII() [1/2]

mimmo::VTUFlushStreamerASCII::VTUFlushStreamerASCII ( )

Base Constructor

Definition at line 32 of file VTUGridWriterASCII.cpp.

◆ ~VTUFlushStreamerASCII()

mimmo::VTUFlushStreamerASCII::~VTUFlushStreamerASCII ( )
virtual

Base Destructor

Definition at line 40 of file VTUGridWriterASCII.cpp.

◆ VTUFlushStreamerASCII() [2/2]

mimmo::VTUFlushStreamerASCII::VTUFlushStreamerASCII ( const VTUFlushStreamerASCII )
default

Copy Constructor

Member Function Documentation

◆ flushData()

void mimmo::VTUFlushStreamerASCII::flushData ( std::fstream &  stream,
const std::string &  name,
bitpit::VTKFormat  format = bitpit::VTKFormat::ASCII 
)
virtual

Interface for writing data to stream.

Parameters
[in]streamis the stream to write to
[in]nameis the name of the data to be written. Either user data or patch data
[in]formatis the format which must be used. This flusher write always ascii.

Definition at line 60 of file VTUGridWriterASCII.cpp.

◆ setTargetPatch()

void mimmo::VTUFlushStreamerASCII::setTargetPatch ( bitpit::PatchKernel &  patch,
bitpit::PiercedStorage< long, long > &  vtkVertexMap 
)

Link the target patch having data to be written

Parameters
[in]patchtarget patchkernel
[in]vtkVertexMapmap of vtk vertexindex to be plot.

Definition at line 47 of file VTUGridWriterASCII.cpp.


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