Class for encoding VTK compatible base64 data streams.
This class is typically used as follows: First, an instance of type Base64Writer is created. It is then filled with data using the left shift operator. Finally, the base64 encoded data is written to a VTK file by calling the member function toStream( std::ostream& os ) where "os" is a reference to an output stream which is attached to the VTK output file:
|template<typename T >|
|Base64Writer &||operator<< (const T &data)|
|This function can be used in order to add data to a Base64Writer instance which then can be converted to a base64 encoded stream. More...|
|void||toStream (std::ostream &os)|
|This function can be used in order to convert all the data that was passed to this Base64Writer object into a base64 encoded stream. More...|
|void||encodeblock (unsigned char in, unsigned char out, int len)|
|std::vector< char >||buffer_|
|void walberla::vtk::Base64Writer::toStream||(||std::ostream &||os||)|
This function can be used in order to convert all the data that was passed to this Base64Writer object into a base64 encoded stream.
In accordance with the VTK specification, the beginning of the base64 encoded stream will contain a 32bit unsigned int value specifying the size (in bytes) of the data that follows. For more information on how a Base64Writer is typically used refer to the documentation/general description of this class.