57#ifndef vtkArrayWriter_h
58#define vtkArrayWriter_h
60#include "vtkIOCoreModule.h"
64VTK_ABI_NAMESPACE_BEGIN
100 vtkSetMacro(WriteToOutputString,
bool);
101 vtkGetMacro(WriteToOutputString,
bool);
102 vtkBooleanMacro(WriteToOutputString,
bool);
121 bool Write(ostream& stream,
bool WriteBinary =
false);
127 static bool Write(
vtkArray* array, ostream& stream,
bool WriteBinary =
false);
Serialize sparse and dense arrays to a file or stream.
static vtkArrayWriter * New()
void WriteData() override
vtkSetFilePathMacro(FileName)
Get / set the filename where data will be stored (when used as a filter).
bool Write(ostream &stream, bool WriteBinary=false)
Write input port 0 data to an arbitrary stream.
static bool Write(vtkArray *array, ostream &stream, bool WriteBinary=false)
Write arbitrary data to a stream without using the pipeline.
virtual vtkStdString GetOutputString()
The output string.
vtkStdString OutputString
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
int Write() override
Write data to output.
vtkStdString Write(bool WriteBinary)
Write input port 0 data to a string.
static bool Write(vtkArray *array, const vtkStdString &file_name, bool WriteBinary=false)
Write an arbitrary array to a file, without using the pipeline.
vtkGetFilePathMacro(FileName)
Get / set the filename where data will be stored (when used as a filter).
~vtkArrayWriter() override
bool Write(const vtkStdString &FileName, bool WriteBinary=false)
Writes input port 0 data to a file, using an arbitrary filename and binary flag.
static vtkStdString Write(vtkArray *array, bool WriteBinary=false)
Write arbitrary data to a string without using the pipeline.
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
Abstract interface for N-dimensional arrays.
a simple class to control print indentation
Wrapper around std::string to keep symbols short.
abstract class to write data to file(s)