Dune Core Modules (unstable)

Dune::VTK::AsciiDataArrayWriter Class Reference

a streaming writer for data array tags, uses ASCII inline format More...

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

Public Member Functions

 AsciiDataArrayWriter (std::ostream &theStream, std::string name, int ncomps, const Indent &indent_, Precision prec_)
 make a new data array writer More...
 
 ~AsciiDataArrayWriter ()
 finish output; writes end tag
 
template<class T >
void write (T data)
 write one element of data
 
virtual bool writeIsNoop () const
 whether calls to write may be skipped
 

Detailed Description

a streaming writer for data array tags, uses ASCII inline format

Constructor & Destructor Documentation

◆ AsciiDataArrayWriter()

Dune::VTK::AsciiDataArrayWriter::AsciiDataArrayWriter ( std::ostream &  theStream,
std::string  name,
int  ncomps,
const Indent indent_,
Precision  prec_ 
)
inline

make a new data array writer

Parameters
theStreamStream to write to.
nameName of array to write.
ncompsNumber of components of the array.
indent_Indentation to use. This is use as-is for the header and trailer lines, but increase by one level for the actual data.

References Dune::VTK::toString().


The documentation for this class was generated from the following file:
Creative Commons License   |  Legal Statements / Impressum  |  Hosted by TU Dresden  |  generated with Hugo v0.80.0 (May 16, 22:29, 2024)