VTK  9.3.1
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:
35  static vtkArrayDataReader* New();
37  void PrintSelf(ostream& os, vtkIndent indent) override;
38 
40 
43  vtkGetFilePathMacro(FileName);
44  vtkSetFilePathMacro(FileName);
46 
48 
52  virtual void SetInputString(const vtkStdString& string);
53  virtual vtkStdString GetInputString();
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
Wrapper around std::string to keep symbols short.
Definition: vtkStdString.h:28
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
Store vtkAlgorithm input/output information.
Pipeline data object that contains multiple vtkArray objects.
Definition: vtkArrayData.h:35
a simple class to control print indentation
Definition: vtkIndent.h:28
Reads vtkArrayData written by vtkArrayDataWriter.
Superclass for algorithms that produce vtkArrayDatas as output.
static vtkArrayDataAlgorithm * New()
Store zero or more vtkInformation instances.
vtkStdString InputString
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.