Dune::VTK::BinaryDataArrayWriter< T > Class Template Reference

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

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

Inheritance diagram for Dune::VTK::BinaryDataArrayWriter< T >:
Inheritance graph

List of all members.

Public Member Functions

 BinaryDataArrayWriter (std::ostream &theStream, std::string name, int ncomps, int nitems, const Indent &indent_)
 make a new data array writer
void write (T data)
 write one data element to output stream
 ~BinaryDataArrayWriter ()
 finish output; writes end tag
virtual bool writeIsNoop () const
 whether calls to write may be skipped

Detailed Description

template<class T>
class Dune::VTK::BinaryDataArrayWriter< T >

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


Constructor & Destructor Documentation

template<class T>
Dune::VTK::BinaryDataArrayWriter< T >::BinaryDataArrayWriter ( std::ostream &  theStream,
std::string  name,
int  ncomps,
int  nitems,
const Indent &  indent_ 
) [inline]

make a new data array writer

Parameters:
theStream Stream to write to.
name Name of array to write.
ncomps Number of components of the array.
nitems Number of cells for cell data/Number of vertices for point data.
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::Base64Stream::flush(), and Dune::Base64Stream::write().

template<class T>
Dune::VTK::BinaryDataArrayWriter< T >::~BinaryDataArrayWriter (  )  [inline]

finish output; writes end tag

References Dune::Base64Stream::flush().


Member Function Documentation

template<class T>
void Dune::VTK::BinaryDataArrayWriter< T >::write ( data  )  [inline, virtual]

write one data element to output stream

Implements Dune::VTK::DataArrayWriter< T >.

References Dune::Base64Stream::write().

template<class T >
virtual bool Dune::VTK::DataArrayWriter< T >::writeIsNoop (  )  const [inline, virtual, inherited]

whether calls to write may be skipped

Reimplemented in Dune::VTK::AppendedRawDataArrayWriter< T >, and Dune::VTK::AppendedBase64DataArrayWriter< T >.


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

Generated on Fri Apr 29 2011 with Doxygen (ver 1.7.1) [doxygen-log,error-log].