dune-grid 2.9.0
Public Member Functions | List of all members
Dune::VTK::AppendedBase64DataArrayWriter Class Reference

a streaming writer for data array tags, uses appended base64 format More...

#include <dune/grid/io/file/vtk/dataarraywriter.hh>

Inheritance diagram for Dune::VTK::AppendedBase64DataArrayWriter:
Inheritance graph

Public Member Functions

 AppendedBase64DataArrayWriter (std::ostream &s, std::string name, int ncomps, unsigned nitems, unsigned &offset, const Indent &indent, Precision prec_)
 make a new data array writer More...
 
bool writeIsNoop () const
 whether calls to write may be skipped More...
 
template<class T >
void write (T data)
 write one element of data More...
 

Detailed Description

a streaming writer for data array tags, uses appended base64 format

Constructor & Destructor Documentation

◆ AppendedBase64DataArrayWriter()

Dune::VTK::AppendedBase64DataArrayWriter::AppendedBase64DataArrayWriter ( std::ostream &  s,
std::string  name,
int  ncomps,
unsigned  nitems,
unsigned &  offset,
const Indent &  indent,
Precision  prec_ 
)
inline

make a new data array writer

Parameters
sStream to write to.
nameName of array to write.
ncompsNumber of components of the array.
nitemsNumber of cells for cell data/Number of vertices for point data.
offsetByte count variable: this is incremented by one for each base64 char which has to written to the appended data section later.
indentIndentation to use. This is uses as-is for the header line.

Member Function Documentation

◆ write()

template<class T >
void Dune::VTK::DataArrayWriter::write ( data)
inlineinherited

write one element of data

◆ writeIsNoop()

bool Dune::VTK::AppendedBase64DataArrayWriter::writeIsNoop ( ) const
inlinevirtual

whether calls to write may be skipped

Reimplemented from Dune::VTK::DataArrayWriter.


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