vtkStringWriter.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 vtkStringWriter_h
9 #define vtkStringWriter_h
10 
11 #include "vtkAlgorithm.h"
12 #include "vtkPVVTKExtensionsIOCoreModule.h" // needed for exports
13 
15 {
16 public:
17  static vtkStringWriter* New();
18  vtkTypeMacro(vtkStringWriter, vtkAlgorithm);
19  void PrintSelf(ostream& os, vtkIndent indent) override;
20 
22 
25  vtkSetStdStringFromCharMacro(String);
26  vtkGetCharFromStdStringMacro(String);
28 
30 
33  vtkSetStdStringFromCharMacro(FileName);
34  vtkGetCharFromStdStringMacro(FileName);
36 
40  int Write();
41 
42 protected:
44  ~vtkStringWriter() override;
45 
46  int FillInputPortInformation(int port, vtkInformation* info) override;
47  int FillOutputPortInformation(int port, vtkInformation* info) override;
49  vtkInformationVector* outputVector) override;
50  virtual int RequestData(vtkInformation*, vtkInformationVector**, vtkInformationVector*);
51 
52 private:
53  vtkStringWriter(const vtkStringWriter&) = delete;
54  void operator=(const vtkStringWriter&) = delete;
55 
56  std::string String;
57  std::string FileName;
58 };
59 
60 #endif // vtkStringWriter_h
Given a string, write it to a file.
#define VTKPVVTKEXTENSIONSIOCORE_EXPORT
virtual int ProcessRequest(vtkInformation *request, vtkInformationVector **inInfo, vtkInformationVector *outInfo)
int vtkTypeBool
virtual int FillOutputPortInformation(int port, vtkInformation *info)
virtual int FillInputPortInformation(int port, vtkInformation *info)
void PrintSelf(ostream &os, vtkIndent indent) VTK_OVERRIDE
static vtkAlgorithm * New()
void operator=(const vtkObjectBase &)