VTK  9.4.20250129
vtkArrayDataReader.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2// SPDX-FileCopyrightText: Copyright 2008 Sandia Corporation
3// SPDX-License-Identifier: LicenseRef-BSD-3-Clause-Sandia-USGov
4
22#ifndef vtkArrayDataReader_h
23#define vtkArrayDataReader_h
24
26#include "vtkIOCoreModule.h" // For export macro
27#include "vtkStdString.h" // for vtkStdString
28
29VTK_ABI_NAMESPACE_BEGIN
30class vtkArrayData;
31
32class VTKIOCORE_EXPORT vtkArrayDataReader : public vtkArrayDataAlgorithm
33{
34public:
37 void PrintSelf(ostream& os, vtkIndent indent) override;
38
40
46
48
52 virtual void SetInputString(const vtkStdString& string);
55
57
60 vtkSetMacro(ReadFromInputString, bool);
61 vtkGetMacro(ReadFromInputString, bool);
62 vtkBooleanMacro(ReadFromInputString, bool);
64
70 static vtkArrayData* Read(istream& stream);
71
75 static vtkArrayData* Read(const vtkStdString& str);
76
77protected:
80
82
83 char* FileName;
86
87private:
89 void operator=(const vtkArrayDataReader&) = delete;
90};
91
92VTK_ABI_NAMESPACE_END
93#endif
Superclass for algorithms that produce vtkArrayDatas as output.
Reads vtkArrayData written by vtkArrayDataWriter.
static vtkArrayDataReader * New()
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
static vtkArrayData * Read(istream &stream)
Read an arbitrary array from a stream.
vtkSetFilePathMacro(FileName)
Set the filesystem location from which data will be read.
~vtkArrayDataReader() override
virtual vtkStdString GetInputString()
The input string to parse.
virtual void SetInputString(const vtkStdString &string)
The input string to parse.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
static vtkArrayData * Read(const vtkStdString &str)
Read an arbitrary array from a string.
vtkGetFilePathMacro(FileName)
Set the filesystem location from which data will be read.
Pipeline data object that contains multiple vtkArray objects.
a simple class to control print indentation
Definition vtkIndent.h:108
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Wrapper around std::string to keep symbols short.