VTK  9.3.0
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 
25 #include "vtkArrayDataAlgorithm.h"
26 #include "vtkIOCoreModule.h" // For export macro
27 #include "vtkStdString.h" // for vtkStdString
28 
29 VTK_ABI_NAMESPACE_BEGIN
30 class vtkArrayData;
31 
32 class VTKIOCORE_EXPORT vtkArrayDataReader : public vtkArrayDataAlgorithm
33 {
34 public:
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 
77 protected:
79  ~vtkArrayDataReader() override;
80 
82 
83  char* FileName;
86 
87 private:
88  vtkArrayDataReader(const vtkArrayDataReader&) = delete;
89  void operator=(const vtkArrayDataReader&) = delete;
90 };
91 
92 VTK_ABI_NAMESPACE_END
93 #endif
Superclass for algorithms that produce vtkArrayDatas as output.
Reads vtkArrayData written by vtkArrayDataWriter.
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
vtkSetFilePathMacro(FileName)
Set the filesystem location from which data will be read.
~vtkArrayDataReader() override
static vtkArrayData * Read(const vtkStdString &str)
Read an arbitrary array from a string.
virtual vtkStdString GetInputString()
The input string to parse.
virtual void SetInputString(const vtkStdString &string)
The input string to parse.
vtkStdString InputString
static vtkArrayDataReader * New()
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkGetFilePathMacro(FileName)
Set the filesystem location from which data will be read.
static vtkArrayData * Read(istream &stream)
Read an arbitrary array from a stream.
Pipeline data object that contains multiple vtkArray objects.
Definition: vtkArrayData.h:45
a simple class to control print indentation
Definition: vtkIndent.h:38
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Wrapper around std::string to keep symbols short.
Definition: vtkStdString.h:38