Go to the documentation of this file.
55 #ifndef vtkArrayWriter_h
56 #define vtkArrayWriter_h
58 #include "vtkIOCoreModule.h"
76 vtkSetStringMacro(FileName);
77 vtkGetStringMacro(FileName);
93 {
return this->OutputString; }
99 vtkSetMacro(WriteToOutputString,
bool);
100 vtkGetMacro(WriteToOutputString,
bool);
101 vtkBooleanMacro(WriteToOutputString,
bool);
120 bool Write(ostream& stream,
bool WriteBinary =
false);
126 static bool Write(
vtkArray* array, ostream& stream,
bool WriteBinary =
false);
vtkStdString Write(bool WriteBinary)
Write input port 0 data to a string.
int Write() override
Write data to output.
static vtkArrayWriter * New()
static bool Write(vtkArray *array, ostream &stream, bool WriteBinary=false)
Write arbitrary data to a stream without using the pipeline.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkStdString OutputString
void WriteData() override
Serialize sparse and dense arrays to a file or stream.
a simple class to control print indentation
abstract class to write data to file(s)
Abstract interface for N-dimensional arrays.
~vtkArrayWriter() override
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.
bool Write(ostream &stream, bool WriteBinary=false)
Write input port 0 data to an arbitrary stream.
Wrapper around std::string to keep symbols short.
static bool Write(vtkArray *array, const vtkStdString &file_name, bool WriteBinary=false)
Write an arbitrary array to a file, without using the pipeline.
bool Write(const vtkStdString &FileName, bool WriteBinary=false)
Writes input port 0 data to a file, using an arbitrary filename and binary flag.
virtual vtkStdString GetOutputString()
The output string.