vtkStringReader.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Kitware Inc.
2 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
3 // SPDX-License-Identifier: BSD-3-Clause
8 #ifndef vtkStringReader_h
9 #define vtkStringReader_h
10 
11 #include "vtkAlgorithm.h"
12 #include "vtkPVVTKExtensionsIOCoreModule.h" //needed for exports
13 
15 {
16 public:
17  static vtkStringReader* New();
18  vtkTypeMacro(vtkStringReader, vtkAlgorithm);
19  void PrintSelf(ostream& os, vtkIndent indent) override;
20 
22 
25  vtkGetCharFromStdStringMacro(String);
27 
29 
32  vtkSetStdStringFromCharMacro(FileName);
33  vtkGetCharFromStdStringMacro(FileName);
35 protected:
37  ~vtkStringReader() override;
38 
39  int FillInputPortInformation(int port, vtkInformation* info) override;
40  int FillOutputPortInformation(int port, vtkInformation* info) override;
42  vtkInformationVector* outputVector) override;
43  virtual int RequestData(vtkInformation*, vtkInformationVector**, vtkInformationVector*);
44 
45 private:
46  vtkStringReader(const vtkStringReader&) = delete;
47  void operator=(const vtkStringReader&) = delete;
48 
49  std::string String;
50  std::string FileName;
51 };
52 
53 #endif // vtkStringReader_h
#define VTKPVVTKEXTENSIONSIOCORE_EXPORT
virtual int ProcessRequest(vtkInformation *request, vtkInformationVector **inInfo, vtkInformationVector *outInfo)
int vtkTypeBool
virtual int FillOutputPortInformation(int port, vtkInformation *info)
Read a file and return a string.
virtual int FillInputPortInformation(int port, vtkInformation *info)
void PrintSelf(ostream &os, vtkIndent indent) VTK_OVERRIDE
static vtkAlgorithm * New()
void operator=(const vtkObjectBase &)