52 #ifndef vtkArrayWriter_h
53 #define vtkArrayWriter_h
55 #include "vtkIOCoreModule.h"
73 vtkSetStringMacro(FileName);
82 vtkGetMacro(Binary,
int);
90 {
return this->OutputString; }
97 vtkGetMacro(WriteToOutputString,
bool);
101 int Write() VTK_OVERRIDE;
106 bool Write(const
vtkStdString& FileName,
bool WriteBinary = false);
117 bool Write(ostream& stream,
bool WriteBinary = false);
123 static
bool Write(
vtkArray* array, ostream& stream,
bool WriteBinary = false);
138 ~vtkArrayWriter() VTK_OVERRIDE;
141 void WriteData() VTK_OVERRIDE;
145 bool WriteToOutputString;
149 vtkArrayWriter(const vtkArrayWriter&) VTK_DELETE_FUNCTION;
150 void operator=(const vtkArrayWriter&) VTK_DELETE_FUNCTION;
Wrapper around std::string to keep symbols short.
Serialize sparse and dense arrays to a file or stream.
Abstract interface for N-dimensional arrays.
abstract class to write data to file(s)
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
a simple class to control print indentation
vtkGetStringMacro(ExtensionsString)
Returns a string listing all available extensions.
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
virtual int Write()
Write data to output.
static vtkAlgorithm * New()
vtkBooleanMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
virtual vtkStdString GetOutputString()
The output string.